diff options
author | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2019-03-28 21:43:28 -0500 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2022-11-02 15:57:27 -0500 |
commit | 96a94ff5f1e7c582fd58d5225ffcd22524926ade (patch) | |
tree | eff9021ce7642feb5afb5efcaa32fb0223b37ef3 /user | |
parent | f501eba1775d96f4438e2086e4b66966f2ec06a8 (diff) | |
download | packages-96a94ff5f1e7c582fd58d5225ffcd22524926ade.tar.gz packages-96a94ff5f1e7c582fd58d5225ffcd22524926ade.tar.bz2 packages-96a94ff5f1e7c582fd58d5225ffcd22524926ade.tar.xz packages-96a94ff5f1e7c582fd58d5225ffcd22524926ade.zip |
user/geoip: new package
Diffstat (limited to 'user')
-rw-r--r-- | user/geoip/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/user/geoip/APKBUILD b/user/geoip/APKBUILD new file mode 100644 index 000000000..2137c76a3 --- /dev/null +++ b/user/geoip/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> +# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> +pkgname=geoip +pkgver=1.6.12 +pkgrel=0 +pkgdesc="C library for geolocating IP addresses" +url="https://www.maxmind.com" +arch="all" +license="LGPL-2.1+ AND ISC" +depends="" +makedepends="" +subpackages="$pkgname-dev $pkgname-doc" +source="https://github.com/maxmind/geoip-api-c/releases/download/v$pkgver/GeoIP-$pkgver.tar.gz" +builddir="$srcdir/GeoIP-$pkgver" + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var + make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +sha512sums="a1c8120692a7ba6de5836550917f86f4797dd236a8b7d71b6f92b5389e4b071d89e57036654f5de1d4b762730a2a5c331c31414eab0c889c9befaa097941fee7 GeoIP-1.6.12.tar.gz" |