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 " TERMUX_PKG_PLATFORM_INDEPENDENT=true TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_VERSION=20190521 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') ## If these checksums becomes invalid - it's time to update package. TERMUX_PKG_SHA256=('7b1e3ea942591e5bf1da152103c36475d51fd00a35670c7499d9662560b231b6' 'c8ca2ef688d51cf0dfe253443e63316705477b754a94f0744f421351eb55b3a5' 'a34e80b309de801993759fef376be8c44b16564e58e8e174c6acb41cd42e5d4f') termux_step_make_install() { install -Dm600 \ -t "$TERMUX_PREFIX"/share/GeoIP/ \ $(find "$TERMUX_PKG_SRCDIR" -type f -iname \*.mmdb) }