38 lines
953 B
Bash
38 lines
953 B
Bash
# Template file for 'geoip'
|
|
pkgname=geoip
|
|
version=1.6.11
|
|
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=b0e5a92200b5ab540d118983f7b7191caf4faf1ae879c44afa3ff2a2abcdb0f5
|
|
|
|
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"
|
|
}
|
|
}
|