Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff --git a/PKGBUILD b/PKGBUILD
index be1e67f..a58dcc7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: Takashi Inoue <inoue(at)pitan.org>
pkgname=mackerel-agent-git
-pkgver=0.39.3
+pkgver=0.45.0
pkgrel=1
pkgdesc="A revolutionary new kind of application performance management"
arch=('i686' 'x86_64')
@@ -22,13 +22,11 @@ build() {
cd "$srcdir/$pkgname"
export GOPATH="$srcdir/go"
+ export PATH="${PATH}:${GOPATH}/bin"
mkdir "$GOPATH"
- go get -d github.com/mackerelio/mackerel-agent
- go build -o build/mackerel-agent \
- -ldflags="\
- -X github.com/mackerelio/mackerel-agent/version.GITCOMMIT=`git rev-parse --short HEAD` \
- -X github.com/mackerelio/mackerel-agent/version.VERSION=`git describe --tags --abbrev=0 | sed 's/^v//' | sed 's/\+.*$$//'` " \
- github.com/mackerelio/mackerel-agent
+ make clean
+ make build
+
}
check() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.