summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorUnix Sheikh2019-07-07 05:01:02 +0200
committerUnix Sheikh2019-07-07 05:01:02 +0200
commitbbeb8b42c70d966f9bc2e79b24b2ac824125658d (patch)
tree244fbb3a5c49e082caf551c0dee0bd20a3c625a1 /PKGBUILD
parent314dd96d7af7c584d7a385b22d4d35792e4f4e84 (diff)
downloadaur-bbeb8b42c70d966f9bc2e79b24b2ac824125658d.tar.gz
Fix build script
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-xPKGBUILD12
1 files changed, 8 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 09d3c359ee4..fc42f6d4d7e 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -20,11 +20,15 @@ source=("https://github.com/unixsheikh/salahtime-go/archive/v1.0.1.zip")
md5sums=('96cbb9656c7e59f4c30b8ec9c94e1a2b')
build() {
- cd "$srcdir/$pkgname-$pkgver"
- go build -o salahtime-go main.go
+ cd $pkgname-$pkgver
+ go build \
+ -gcflags "all=-trimpath=$PWD" \
+ -asmflags "all=-trimpath=$PWD" \
+ -ldflags "-extldflags $LDFLAGS" \
+ -o $pkgname .
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
- install -Dm755 "salahtime-go" "$pkgdir/usr/bin/salahtime-go"
+ cd $pkgname-$pkgver
+ install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
}