diff options
author | Alexander F. Rødseth | 2022-07-21 15:51:42 +0200 |
---|---|---|
committer | Alexander F. Rødseth | 2022-07-21 15:51:42 +0200 |
commit | d33b35e1c98cebd9ef184da5f50fc5654e50393f (patch) | |
tree | c4a6200fe909b1bdbc972c5058cf70a815fc3039 | |
parent | 8b005997495203d91da894f3df2328978e206264 (diff) | |
download | aur-battlestar.tar.gz |
Better build flags when building with go
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 5 |
2 files changed, 4 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = battlestar pkgdesc = Programming language for creating tiny executables pkgver = 0.7.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/xyproto/battlestar arch = x86_64 license = BSD @@ -2,7 +2,7 @@ pkgname=battlestar pkgver=0.7.0 -pkgrel=1 +pkgrel=2 pkgdesc='Programming language for creating tiny executables' arch=(x86_64) url='https://github.com/xyproto/battlestar' @@ -17,7 +17,8 @@ source=("git+$url#commit=deb78a26b141531abe6cdc5cd980691e3a41ec46") b2sums=('SKIP') build() { - make -C $pkgname + cd $pkgname/cmd/battlestarc + go build -buildmode=pie -ldflags="-s -w -extldflags \"${LDFLAGS}\"" -mod=vendor -trimpath -v } package() { |