26330f64e4
Now just bump version approximately once per month for updating package. Database checksums are constantly changing, so disable them to prevent build errors when geoip2-database is a dependency.
20 lines
855 B
Bash
20 lines
855 B
Bash
TERMUX_PKG_HOMEPAGE=https://dev.maxmind.com/geoip/geoip2/geolite2/
|
|
TERMUX_PKG_DESCRIPTION="GeoLite2 IP geolocation databases compiled by MaxMind"
|
|
TERMUX_PKG_LICENSE="CC0-1.0"
|
|
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
# Bump date ~once per month to update package.
|
|
TERMUX_PKG_VERSION=20190730
|
|
TERMUX_PKG_SRCURL=('https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz'
|
|
'https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz'
|
|
'https://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN.tar.gz')
|
|
TERMUX_PKG_SHA256=('SKIP_CHECKSUM' 'SKIP_CHECKSUM' 'SKIP_CHECKSUM')
|
|
|
|
termux_step_make_install() {
|
|
install -Dm600 \
|
|
-t "$TERMUX_PREFIX"/share/GeoIP/ \
|
|
$(find "$TERMUX_PKG_SRCDIR" -type f -iname \*.mmdb)
|
|
}
|