summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD8
1 files changed, 5 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3c2df6e6171..07b7c61501a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: shulhan <ms@kilabit.info>
pkgname=rescached-git
-pkgver=3.0.2.r0.g5c3f180
+pkgver=4.0.0.r0.g004ca8b
pkgrel=1
pkgdesc="Resolver/DNS cache daemon"
arch=('i686' 'x86_64' 'armv7h')
@@ -10,7 +10,7 @@ license=('custom:BSD')
depends=('bash')
provides=('rescached')
-makedepends=('git' 'go>=1.13')
+makedepends=('git' 'go>=1.14')
source=(
"$pkgname::git+https://github.com/shuLhan/rescached-go.git"
)
@@ -20,11 +20,12 @@ sha1sums=(
backup=(
'etc/rescached/rescached.cfg'
- 'etc/rescached/hosts.d/hosts.block'
'etc/rescached/localhost.cert.pem'
'etc/rescached/localhost.key.pem'
)
+install=rescached.install
+
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
@@ -40,6 +41,7 @@ build() {
echo ">> make ..."
echo ">>"
unset GOROOT
+ export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
make || return 1
}