diff options
author | Leonardo Arena <rnalrd@gmail.com> | 2010-10-26 09:40:45 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@gmail.com> | 2010-10-26 09:40:45 +0000 |
commit | 5de5094384d557f870ff2406a8bc02e251aab388 (patch) | |
tree | ea03431cb499cdacc9ee866d0d0b326947fdb8c8 /main/geoip/APKBUILD | |
parent | 6d260f6fcc07a1b0ae6b34a0c07d1668fcf08556 (diff) | |
download | aports-5de5094384d557f870ff2406a8bc02e251aab388.tar.bz2 aports-5de5094384d557f870ff2406a8bc02e251aab388.tar.xz |
testing/geoip: moved to main
Diffstat (limited to 'main/geoip/APKBUILD')
-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" |