diff options
author | orhun | 2020-11-25 18:53:50 +0300 |
---|---|---|
committer | orhun | 2020-11-25 18:53:50 +0300 |
commit | e4b6856ff96974be50622c13f5472b65415fc264 (patch) | |
tree | 5219b82dd6bcb752d5dfb3dc1d6ca297f2b9f2c1 | |
parent | ad9451ebe4bebda286cb4f914e88cc704bb6597a (diff) | |
download | aur-e4b6856ff96974be50622c13f5472b65415fc264.tar.gz |
upgpkg: slicer-git 1.4.r5.gb70e33f-1
Respect go flags for PIE and RELRO
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 16 |
2 files changed, 10 insertions, 10 deletions
@@ -1,7 +1,7 @@ pkgbase = slicer-git pkgdesc = A tool to automate the boring process of APK recon (git) - pkgver = 1.4.r0.g50589ac - pkgrel = 2 + pkgver = 1.4.r5.gb70e33f + pkgrel = 1 url = https://github.com/mzfr/slicer arch = x86_64 license = GPL3 @@ -3,8 +3,8 @@ pkgname=slicer-git pkgdesc="A tool to automate the boring process of APK recon (git)" -pkgver=1.4.r0.g50589ac -pkgrel=2 +pkgver=1.4.r5.gb70e33f +pkgrel=1 arch=('x86_64') url="https://github.com/mzfr/slicer" license=('GPL3') @@ -21,12 +21,12 @@ pkgver() { build() { cd "${pkgname%-git}" - go get -d ./... - go build \ - -gcflags "all=-trimpath=$PWD" \ - -asmflags "all=-trimpath=$PWD" \ - -ldflags "-extldflags $LDFLAGS" \ - -o "${pkgname%-git}" . + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + go build -o "${pkgname%-git}" . } package() { |