void-packages/srcpkgs/geoip/template
Juan RP 0785d8ba32
geoip: get rid of geoip-data dependency.
This geoip-data pkg is completely broken, downloads unversioned
zip archives that change daily!

So at least unbreak this pkg (and nginx!).

Close #16216
Close #12879
2020-04-23 18:48:59 +02:00

37 lines
960 B
Bash

# Template file for 'geoip'
pkgname=geoip
version=1.6.12
revision=2
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>"
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"
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"
}
}