# Depends on: geoip-database

description="Non-DNS IP-to-country resolver C library & utils."
url="http://www.maxmind.com/app/c"
packager="tnut <tnut@nutyx.org>"

name=geoip
version=1.6.11
release=2

PKGMK_KEEP_SOURCES="no"

source=(https://github.com/maxmind/${name}-api-c/archive/v${version}.tar.gz)

build() {
	cd geoip-api-c-$version

	autoreconf -vi

	./configure \
		--sysconfdir=/etc/geoip \
		--prefix=/usr \
		--mandir=/usr/man
	make
	make DESTDIR=$PKG install

        # Obsolet lib
        rm $PKG/usr/lib/libGeoIP.la
}
