From 7e051a0db759734bebbda1d6d1bb9552400df8db Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Wed, 3 Jun 2020 13:06:08 +0000 Subject: [PATCH] community/geoipupdate to 4.3.0-2 --- community/geoipupdate/PKGBUILD | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/community/geoipupdate/PKGBUILD b/community/geoipupdate/PKGBUILD index 8d1a7248e..c19184d31 100644 --- a/community/geoipupdate/PKGBUILD +++ b/community/geoipupdate/PKGBUILD @@ -7,12 +7,12 @@ pkgname=geoipupdate pkgver=4.3.0 -pkgrel=1 +pkgrel=2 pkgdesc="Update GeoIP2 and GeoIP Legacy binary databases from MaxMind" license=('Apache' 'MIT') arch=('x86_64') url="https://dev.maxmind.com/geoip/geoipupdate" -makedepends=(go-pie) +makedepends=(go) backup=(etc/GeoIP.conf) provides=(geoip2-database) replaces=(geoip2-database) @@ -44,8 +44,14 @@ build() { make BUILDDIR="$srcdir/build" data cd cmd/geoipupdate - export LDFLAGS="$LDFLAGS -X main.defaultConfigFile=$CONFFILE -X main.defaultDatabaseDirectory=$DATADIR -X main.version=$pkgver" - go build -trimpath -ldflags "-extldflags $LDFLAGS" -o "$srcdir/build/geoipupdate" . + go build \ + -trimpath \ + -buildmode=pie \ + -mod=readonly \ + -modcacherw \ + -ldflags "-extldflags \"$LDFLAGS\" -X main.defaultConfigFile=$CONFFILE -X main.defaultDatabaseDirectory=$DATADIR -X main.version=$pkgver" \ + -o "$srcdir/build/geoipupdate" \ + . } package() {