[arch-commits] Commit in dnscrypt-proxy/trunk (PKGBUILD)
David Runge
dvzrv at archlinux.org
Thu Jun 4 20:02:53 UTC 2020
Date: Thursday, June 4, 2020 @ 20:02:52
Author: dvzrv
Revision: 639041
upgpkg: dnscrypt-proxy 2.0.42-3: Rebuilding for go-pie deprecation.
Modified:
dnscrypt-proxy/trunk/PKGBUILD
----------+
PKGBUILD | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-06-04 19:54:00 UTC (rev 639040)
+++ PKGBUILD 2020-06-04 20:02:52 UTC (rev 639041)
@@ -5,13 +5,13 @@
pkgname=dnscrypt-proxy
pkgver=2.0.42
-pkgrel=2
+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')
install="${pkgname}.install"
backup=("etc/${pkgname}/${pkgname}.toml"
@@ -41,7 +41,12 @@
build() {
cd "$pkgname-$pkgver/${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() {
More information about the arch-commits
mailing list