summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2020-06-09 13:04:02 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2020-06-09 13:04:02 -0700
commitf706f9098862b4c6ef45b669635ceca007037ade (patch)
tree41f8755ac278180fb1d91169a1e8614be6f6ad3a
parentFix paths (diff)
downloaddnscrypt-proxy-f706f9098862b4c6ef45b669635ceca007037ade.tar.xz
Rebuild with go
-rw-r--r--PKGBUILD15
1 files changed, 10 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 71b35f0..0a69942 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,14 +10,14 @@
# Artix version has 1.x migration notice
pkgname=dnscrypt-proxy
-pkgver=2.0.41
-pkgrel=1
+pkgver=2.0.42
+pkgrel=3
pkgdesc="DNS proxy, supporting encrypted DNS protocols such as DNSCrypt v2 and DNS-over-HTTPS"
arch=('x86_64')
url="https://github.com/DNSCrypt/dnscrypt-proxy"
-license=('custom:ISC')
+license=('ISC')
depends=('glibc')
-makedepends=('git' 'go-pie')
+makedepends=('git' 'go')
optdepends=('python-urllib3: for generate-domains-blacklist')
backup=("etc/${pkgname}/${pkgname}.toml"
"etc/${pkgname}/blacklist.txt"
@@ -59,7 +59,12 @@ build() {
# set GOPATH
export GOPATH=$(pwd)
cd "$pkgname"
- go build -ldflags="-linkmode external -extldflags ${LDFLAGS} -s -w"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+ go build
}
package() {