diff options
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -47,10 +47,16 @@ prepare() { patch -Np1 -i ../configuration.diff # create empty ip-blacklist.txt touch "${pkgname}/ip-blacklist.txt" + # symlink upstream's vendor to src + ln -sfv vendor src + rm -v go.mod } build() { - cd "$pkgname-$pkgver/${pkgname}" + cd "$pkgname-$pkgver" + # set GOPATH + export GOPATH=$(pwd) + cd "${pkgname}" go build -ldflags="-linkmode external -extldflags ${LDFLAGS} -s -w" } |