diff options
-rw-r--r-- | testing/geoip/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/geoip/APKBUILD b/testing/geoip/APKBUILD new file mode 100644 index 000000000..c594d8fd9 --- /dev/null +++ b/testing/geoip/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname="geoip" +_realname="GeoIP" +pkgver=1.4.6 +pkgrel=0 +pkgdesc="Lookup countries by IP addresses" +url="http://www.maxmind.com/app/ip-location" +license="GPL" +depends= +makedepends= +install= +subpackages="$pkgname-dev $pkgname-doc" +source="http://www.maxmind.com/download/geoip/api/c/$_realname-$pkgver.tar.gz" + +_builddir="$srcdir"/$_realname-$pkgver + +prepare() { + cd "$_builddir" + # apply patches here +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc/geoip \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make || return 1 + make check || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install +} + +md5sums="cb14b1beeb40631a12676b11ca0c309a GeoIP-1.4.6.tar.gz" |