1b8104e0a9
Attempt to fix following error: Writing more data than expected (22610650 > 22610408) Hashes of expected file: - SHA256:08abc5cffb9e1967fab487a471bb547f5ae706c48bf8e59d1443b2ad4af9caaf - SHA1:36ded1e207135bdeb8b7301bc03309ebced3cd32 [weak] - Filesize:22610408 [weak]
24 lines
1.0 KiB
Bash
24 lines
1.0 KiB
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
|
|
TERMUX_PKG_VERSION=20190721
|
|
TERMUX_PKG_REVISION=1
|
|
|
|
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 become invalid - it's time to update package.
|
|
TERMUX_PKG_SHA256=('9a3161673ce58488ec35ba77c4153a14ccdce331ce00e54768070fdc8b41061c'
|
|
'a4f19c4b4076715ddc07ca5543f9627276815c0795488a7e2121bb67f247cd7f'
|
|
'dcdd4dabb345e2904d1fa6bd65ff02fb6b0407d71a867ff9d9cbe85c88c4c64d')
|
|
|
|
termux_step_make_install() {
|
|
install -Dm600 \
|
|
-t "$TERMUX_PREFIX"/share/GeoIP/ \
|
|
$(find "$TERMUX_PKG_SRCDIR" -type f -iname \*.mmdb)
|
|
}
|