diff --git a/mingw-w64-geoip2-database/PKGBUILD b/mingw-w64-geoip2-database/PKGBUILD new file mode 100644 index 0000000000..9ed6e2c2d8 --- /dev/null +++ b/mingw-w64-geoip2-database/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Alexey Pavlov + +_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 +}