diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/php-geoip |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/php-geoip')
-rw-r--r-- | community/php-geoip/PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/community/php-geoip/PKGBUILD b/community/php-geoip/PKGBUILD new file mode 100644 index 000000000..411d5bbf4 --- /dev/null +++ b/community/php-geoip/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 36134 2010-12-27 13:40:37Z foutrelis $ +# Maintainer: Evangelos Foutras <foutrelis@gmail.com> + +pkgname=php-geoip +pkgver=1.0.7 +pkgrel=2 +pkgdesc="GeoIP module for PHP" +arch=('i686' 'x86_64') +url="http://pecl.php.net/package/geoip" +license=('PHP') +depends=('php' 'geoip') +backup=('etc/php/conf.d/geoip.ini') +source=(http://pecl.php.net/get/geoip-$pkgver.tgz) +md5sums=('ca5397a1dacb62afd426c2065fc1e106') + +build() { + cd "$srcdir/geoip-$pkgver" + + phpize + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/geoip-$pkgver" + + make INSTALL_ROOT="$pkgdir" install + echo ';extension=geoip.so' >geoip.ini + install -Dm644 geoip.ini "$pkgdir/etc/php/conf.d/geoip.ini" +} + +# vim:set ts=2 sw=2 et: |