[arch-commits] Commit in geoipupdate/trunk (PKGBUILD)

Massimiliano Torromeo mtorromeo at archlinux.org
Wed Jun 3 08:53:17 UTC 2020


    Date: Wednesday, June 3, 2020 @ 08:53:16
  Author: mtorromeo
Revision: 638249

go package guidelines rebuild

Modified:
  geoipupdate/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-03 08:31:16 UTC (rev 638248)
+++ PKGBUILD	2020-06-03 08:53:16 UTC (rev 638249)
@@ -2,12 +2,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 pandoc)
+makedepends=(go pandoc)
 backup=(etc/GeoIP.conf)
 provides=(geoip2-database)
 replaces=(geoip2-database)
@@ -36,8 +36,14 @@
     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() {


More information about the arch-commits mailing list