void-packages/srcpkgs/geoip/template
2021-04-14 19:44:00 +00:00

37 lines
972 B
Bash

# Template file for 'geoip'
pkgname=geoip
version=1.6.12
revision=3
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="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="http://www.maxmind.com/app/c"
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"
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"
}
}