diff options
Diffstat (limited to 'main/geoip')
-rw-r--r-- | main/geoip/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/main/geoip/APKBUILD b/main/geoip/APKBUILD new file mode 100644 index 0000000000..25480e9869 --- /dev/null +++ b/main/geoip/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname="geoip" +_realname="GeoIP" +pkgver=1.4.6 +pkgrel=1 +pkgdesc="Lookup countries by IP addresses" +url="http://www.maxmind.com/app/ip-location" +license="GPL" +depends= +makedepends="zlib-dev" +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" |