geoip2-database: New package.
This commit is contained in:
26
mingw-w64-geoip2-database/PKGBUILD
Normal file
26
mingw-w64-geoip2-database/PKGBUILD
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user