diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2019-09-07 17:59:27 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2019-09-07 17:59:27 -0700 |
commit | 822a0dc9a9cfccfa88410e28d2af575f1383bbe1 (patch) | |
tree | a20a4a7d8dbe1aacd263b0d7ab21d53c86ea83e6 | |
parent | Updated to 2.0.26 (diff) | |
download | dnscrypt-proxy-822a0dc9a9cfccfa88410e28d2af575f1383bbe1.tar.xz |
Revert changes so that offline building is still possible
-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" } |