summaryrefslogtreecommitdiff
path: root/community/php-geoip
diff options
context:
space:
mode:
Diffstat (limited to 'community/php-geoip')
-rw-r--r--community/php-geoip/PKGBUILD32
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: