summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index bcaaa28dee0..f0f577a39d7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -22,12 +22,13 @@ pkgver() {
}
build() {
- GOPATH="$srcdir" go get -fix -v -x ${_gourl}
+ cd "$_gitname"
+ go build -trimpath -ldflags "-extldflags $LDFLAGS" .
}
package() {
mkdir -p "$pkgdir/usr/bin"
- install -p -m755 "$srcdir/bin/"* "$pkgdir/usr/bin"
+ install -p -m755 "$srcdir/$_gitname/$_gitname" "$pkgdir/usr/bin"
# Package license (if available)
for f in LICENSE COPYING LICENSE.* COPYING.*; do