summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex W2019-10-07 01:55:08 +0100
committerAlex W2019-10-07 01:55:08 +0100
commit82bb57113458a5a47050ee35163d8f67b31a8a24 (patch)
treecc663f25a784363335576605c0a32afbba90d1f5
parent555ca4faf7e906037d2742fd01d3b69ce3914e61 (diff)
downloadaur-82bb57113458a5a47050ee35163d8f67b31a8a24.tar.gz
switch to new gomodule build process
-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