void-packages/srcpkgs/geoip/template

39 lines
982 B
Bash

# Template file for 'geoip'
pkgname=geoip
version=1.6.12
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.org>"
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=1dfb748003c5e4b7fd56ba8c4cd786633d5d6f409547584f6910398389636f80
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"
vmove "usr/lib/pkgconfig"
}
}