summaryrefslogtreecommitdiff
path: root/extra/geoip
diff options
context:
space:
mode:
Diffstat (limited to 'extra/geoip')
-rw-r--r--extra/geoip/PKGBUILD31
1 files changed, 21 insertions, 10 deletions
diff --git a/extra/geoip/PKGBUILD b/extra/geoip/PKGBUILD
index bfbeec073..d969c256c 100644
--- a/extra/geoip/PKGBUILD
+++ b/extra/geoip/PKGBUILD
@@ -1,25 +1,36 @@
-# $Id: PKGBUILD 123437 2011-05-11 11:45:24Z juergen $
+# $Id: PKGBUILD 136949 2011-09-03 12:23:55Z foutrelis $
# Maintainer: Dan McGee <dan@archlinux.org>
# Contributor: Manolis Tzanidakis <manolis@archlinux.org>
pkgname=geoip
-pkgver=1.4.7
+pkgver=1.4.8
pkgrel=1
pkgdesc="Non-DNS IP-to-country resolver C library & utils"
-arch=(i686 x86_64)
-license=('GPL')
+arch=('i686' 'x86_64')
url="http://www.maxmind.com/app/c"
+license=('GPL')
depends=('zlib')
-backup=(etc/geoip/GeoIP.conf)
+backup=('etc/geoip/GeoIP.conf')
options=('!libtool')
source=(http://www.maxmind.com/download/geoip/api/c/GeoIP-${pkgver}.tar.gz)
-md5sums=('a802175d5b7e2b57b540a7dd308d9205')
+md5sums=('05b7300435336231b556df5ab36f326d')
build() {
- cd ${startdir}/src/GeoIP-${pkgver}
+ cd "${srcdir}/GeoIP-${pkgver}"
+
+ autoreconf -i
./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc/geoip
- make || return 1
- make check || return 1
- make DESTDIR=${startdir}/pkg install
+ make
+}
+
+check() {
+ cd "${srcdir}/GeoIP-${pkgver}"
+ make check
+}
+
+package() {
+ cd "${srcdir}/GeoIP-${pkgver}"
+ make DESTDIR="${pkgdir}" install
}
+# vim:set ts=2 sw=2 et: