30 lines
1.0 KiB
Bash
30 lines
1.0 KiB
Bash
# Template file for 'geoipupdate'
|
|
pkgname=geoipupdate
|
|
version=7.0.1
|
|
revision=2
|
|
build_style=go
|
|
go_import_path="github.com/maxmind/geoipupdate/v7"
|
|
go_package="${go_import_path}/cmd/geoipupdate"
|
|
go_ldflags="-X main.version=$version -X main.defaultConfigFile=/etc/geoip/GeoIP.conf
|
|
-X main.defaultDatabaseDirectory=/usr/share/GeoIP"
|
|
hostmakedepends="perl pandoc"
|
|
short_desc="GeoIP update client code"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="Apache-2.0 OR MIT"
|
|
homepage="https://github.com/maxmind/geoipupdate"
|
|
changelog="https://github.com/maxmind/geoipupdate/raw/main/CHANGELOG.md"
|
|
distfiles="https://github.com/maxmind/geoipupdate/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=59c80ab737f128fc05e4ecdec4d84652182851dc8c8bea892022e3fc12db9101
|
|
conf_files="/etc/geoip/GeoIP.conf"
|
|
|
|
post_build() {
|
|
make data CONFFILE=/etc/geoip/GeoIP.conf DATADIR=/usr/share/GeoIP VERSION="$version"
|
|
}
|
|
|
|
post_install() {
|
|
vinstall build/GeoIP.conf 644 /etc/geoip
|
|
vman build/geoipupdate.1
|
|
vman build/GeoIP.conf.5
|
|
vlicense LICENSE-MIT
|
|
}
|