geoip2-database: New package.

This commit is contained in:
Alexpux
2015-01-03 01:07:02 +03:00
parent 8250aea028
commit 64181217f7

View File

@@ -0,0 +1,26 @@
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=geoip2-database
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=20150102
pkgrel=1
pkgdesc="GeoLite country geolocation database compiled by MaxMind (mingw-w64)"
arch=('any')
url="http://www.maxmind.com/app/ip-location"
license=('custom:Creative Commons Attribution-ShareAlike 3.0 Unported')
source=(GeoLite2-Country-$pkgver.mmdb.gz::http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz
#GeoLite2-City-$pkgver.mmdb.gz::http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz
)
sha256sums=('ebc058008bc18fd29ecd720236a22d81d6cdce81d07fd75b5acf2859cc530e48')
prepare() {
cd "$srcdir"
mv GeoLite2-Country-${pkgver}.mmdb GeoLite2-Country.mmdb
}
package() {
cd "$srcdir"
install -d "${pkgdir}${MINGW_PREFIX}/share/GeoIP2"
install -m644 -t "${pkgdir}${MINGW_PREFIX}/share/GeoIP2" GeoLite2-Country.mmdb
}