mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
community/geoipupdate to 4.3.0-2
This commit is contained in:
parent
6778d951dc
commit
7e051a0db7
1 changed files with 10 additions and 4 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue