community/geoipupdate to 4.3.0-2

This commit is contained in:
Kevin Mihelich 2020-06-03 13:06:08 +00:00
parent 6778d951dc
commit 7e051a0db7

View file

@ -7,12 +7,12 @@
pkgname=geoipupdate pkgname=geoipupdate
pkgver=4.3.0 pkgver=4.3.0
pkgrel=1 pkgrel=2
pkgdesc="Update GeoIP2 and GeoIP Legacy binary databases from MaxMind" pkgdesc="Update GeoIP2 and GeoIP Legacy binary databases from MaxMind"
license=('Apache' 'MIT') license=('Apache' 'MIT')
arch=('x86_64') arch=('x86_64')
url="https://dev.maxmind.com/geoip/geoipupdate" url="https://dev.maxmind.com/geoip/geoipupdate"
makedepends=(go-pie) makedepends=(go)
backup=(etc/GeoIP.conf) backup=(etc/GeoIP.conf)
provides=(geoip2-database) provides=(geoip2-database)
replaces=(geoip2-database) replaces=(geoip2-database)
@ -44,8 +44,14 @@ build() {
make BUILDDIR="$srcdir/build" data make BUILDDIR="$srcdir/build" data
cd cmd/geoipupdate cd cmd/geoipupdate
export LDFLAGS="$LDFLAGS -X main.defaultConfigFile=$CONFFILE -X main.defaultDatabaseDirectory=$DATADIR -X main.version=$pkgver" go build \
go build -trimpath -ldflags "-extldflags $LDFLAGS" -o "$srcdir/build/geoipupdate" . -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() { package() {