pkgname=apache-mod_geoip2
pkgver=1.2.5
pkgrel=1
pkgdesc="geoip interface module for apache."
arch=('i686' 'x86_64')
url="http://www.maxmind.com/app/mod_geoip"
license=('LGPL')
depends=('apache' 'geoip')
makedepends=('apache' 'geoip')
source=("http://geolite.maxmind.com/download/geoip/api/mod_geoip2/mod_geoip2_$pkgver.tar.gz")
md5sums=('5d35c9a9cbf47c2cb636bed26cd5fa19')

build() {
  cd $srcdir/mod_geoip2_$pkgver
  apxs -lGeoIP -L/usr/lib -I/usr/include -c mod_geoip.c
}

package() {
  cd $srcdir/mod_geoip2_$pkgver
  install -Dm0755 .libs/mod_geoip.so $pkgdir/usr/lib/httpd/modules/mod_geoip.so
}

# vim:set ts=2 sw=2 et:
