# Maintainer: Leonardo Arena pkgname="geoip" _realname="GeoIP" pkgver=1.6.10 pkgrel=0 pkgdesc="Lookup countries by IP addresses" url="http://www.maxmind.com/app/ip-location" arch="all" license="GPL" makedepends="zlib-dev" subpackages="$pkgname-dev $pkgname-doc" source="https://github.com/maxmind/geoip-api-c/releases/download/v$pkgver/$_realname-$pkgver.tar.gz geoip.cron" builddir="$srcdir"/$_realname-$pkgver prepare() { cd "$builddir" # update_config_sub || return 1 return 0 } build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc/geoip \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ || return 1 make || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 mkdir -p "$pkgdir"/usr/share/GeoIP install -m755 -D ../../geoip.cron "$pkgdir"/etc/periodic/monthly/geoip } check() { cd "$builddir" make check || return 1 } sha512sums="67b53d70372b96fb24cfa291a243cd324240b8a99800651cdb4d243a28ac2ea9926858edbc300a73ee797e50dc427188c7073ce47a2160d7d689a4ff555e6277 GeoIP-1.6.10.tar.gz 5fc4003b57f5a0514c42764a6c6d28c2db926ea244f125accf490648adc9d172215e0d16426f49d79e1c465fea2c71b591636f1038d683c77535d2d93811a73e geoip.cron"