38 lines
953 B
Bash
38 lines
953 B
Bash
# Template file for 'geoip'
|
|
pkgname=geoip
|
|
version=1.6.10
|
|
revision=1
|
|
wrksrc="GeoIP-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="--mandir=/usr/share/man --sysconfdir=/etc/geoip"
|
|
hostmakedepends="automake libtool"
|
|
makedepends="zlib-devel"
|
|
short_desc="Non-DNS IP-to-country resolver C library and utilities"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://www.maxmind.com/app/c"
|
|
license="GPL-2"
|
|
distfiles="https://github.com/maxmind/geoip-api-c/releases/download/v$version/GeoIP-$version.tar.gz"
|
|
checksum=cb44e0d0dbc45efe2e399e695864e58237ce00026fba8a74b31d85888c89c67a
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
libgeoip_package() {
|
|
short_desc+=" - Runtime library"
|
|
depends="geoip-data"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
|
|
geoip-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="zlib-devel libgeoip>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|