# $Id$ # Maintainer: Juergen Hoetzel # Contributor: Manolis Tzanidakis pkgname=geoip pkgver=1.6.11 pkgrel=1 pkgdesc="Non-DNS IP-to-country resolver C library & utils" arch=('x86_64') url="http://www.maxmind.com/app/c" license=('GPL') depends=('zlib' 'geoip-database') optdepends=('geoip-database-extra: city/ASN databases (not needed for country lookups)') makedepends=('autoconf' 'libtool') options=('!emptydirs') source=($pkgname-$pkgver.tar.gz::https://github.com/maxmind/${pkgname}-api-c/archive/v${pkgver}.tar.gz) sha256sums=('8859cb7c9cb63e77f4aedb40a4622024359b956b251aba46b255acbe190c34e0') prepare() { cd geoip-api-c-$pkgver ./bootstrap } build() { cd geoip-api-c-$pkgver ./configure \ --prefix=/usr \ --mandir=/usr/share/man \ --sysconfdir=/etc/geoip make } package() { cd geoip-api-c-$pkgver make DESTDIR="$pkgdir" install } # vim:set ts=2 sw=2 et: