core/geoip/PKGBUILD

41 lines
862 B
Bash
Raw Normal View History

# Maintainer: Michael Haesel <michael[dot]haesel[at]gmail[dot]com>
2010-03-14 23:48:48 +08:00
pkgname=geoip
pkgver=1.4.8
2010-03-14 23:48:48 +08:00
pkgrel=1
pkgdesc="Non-DNS IP-to-country resolver C library & utils"
arch=(i686 x86_64)
license=('GPL')
url="http://www.maxmind.com/app/c"
depends=('zlib' 'geoip-database')
2010-03-14 23:48:48 +08:00
backup=(etc/geoip/GeoIP.conf)
options=('!libtool' '!emptydirs')
2010-03-14 23:48:48 +08:00
source=(http://www.maxmind.com/download/geoip/api/c/GeoIP-${pkgver}.tar.gz)
sha256sums=('cf0f6b2bac1153e34d6ef55ee3851479b347d2b5c191fda8ff6a51fab5291ff4')
2010-03-14 23:48:48 +08:00
build() {
cd "${srcdir}/GeoIP-${pkgver}"
autoreconf -vi
./configure --prefix=/usr \
--mandir=/usr/share/man \
--sysconfdir=/etc/geoip
make
}
check() {
cd "${srcdir}/GeoIP-${pkgver}"
make check
}
package() {
cd "${startdir}/src/GeoIP-${pkgver}"
make DESTDIR="${pkgdir}" install
rm "${pkgdir}/usr/share/GeoIP/GeoIP.dat"
2010-03-14 23:48:48 +08:00
}