diff options
Diffstat (limited to 'extra/geoip/PKGBUILD')
-rw-r--r-- | extra/geoip/PKGBUILD | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/extra/geoip/PKGBUILD b/extra/geoip/PKGBUILD index c100284f9..777983769 100644 --- a/extra/geoip/PKGBUILD +++ b/extra/geoip/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 197302 2013-10-25 01:44:22Z allan $ +# $Id: PKGBUILD 216903 2014-07-15 13:02:26Z juergen $ # Maintainer: Dan McGee <dan@archlinux.org> # Contributor: Manolis Tzanidakis <manolis@archlinux.org> pkgname=geoip -pkgver=1.5.1 -pkgrel=2 +pkgver=1.6.2 +pkgrel=1 pkgdesc="Non-DNS IP-to-country resolver C library & utils" arch=('i686' 'x86_64') url="http://www.maxmind.com/app/c" @@ -12,20 +12,17 @@ license=('GPL') depends=('zlib' 'geoip-database') backup=('etc/geoip/GeoIP.conf') options=('!emptydirs') -source=(http://www.maxmind.com/download/geoip/api/c/GeoIP-$pkgver.tar.gz - pkgconfig.patch) -sha256sums=('ec35ee73fcc54c493f4252565d1c81d022b398dd16de3af1522c8cab016f8731' - '64a6a608beabdc553019237d7da808dc234f760c21040036b2f589eaebba5d10') +source=(https://github.com/maxmind/${pkgname}-api-c/archive/v${pkgver}.tar.gz) +sha256sums=('72562fc10792eea6cfa662d93ef40c6541b73619df8057a6e411144e671a9174') prepare() { - cd GeoIP-$pkgver - patch -Np1 -i ../pkgconfig.patch + cd geoip-api-c-$pkgver + autoreconf -vi } build() { - cd GeoIP-$pkgver + cd geoip-api-c-$pkgver - autoreconf -vi ./configure \ --prefix=/usr \ --mandir=/usr/share/man \ @@ -34,17 +31,14 @@ build() { } check() { - cd GeoIP-$pkgver + cd geoip-api-c-$pkgver + ln -sf /usr/share/GeoIP data make check } package() { - cd GeoIP-$pkgver - + cd geoip-api-c-$pkgver make DESTDIR="$pkgdir" install - - # country database is provided by geoip-database - rm "$pkgdir/usr/share/GeoIP/GeoIP.dat" } # vim:set ts=2 sw=2 et: |