summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorThore Boedecker2016-01-15 00:06:01 +0100
committerThore Boedecker2016-01-15 00:06:01 +0100
commitf241a5a64da5a5d2279d01182d90be0cf487ae60 (patch)
tree9b1dc8a3bad2aa0408872ebcdf6cd70aeda59a5d /PKGBUILD
downloadaur-f241a5a64da5a5d2279d01182d90be0cf487ae60.tar.gz
Initial commit for php56 version
Signed-off-by: Thore Boedecker <me@foxxx0.de>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..571889f7f5d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Thore Bödecker <me [at] foxxx0 [dot] de>
+
+pkgname=php56-geoip
+_pkgbase="${pkgname#php56-}"
+_phpbase="${pkgname/-geoip}"
+pkgver=1.1.0
+pkgrel=2
+_svnrev=337409
+pkgdesc="GeoIP module for PHP"
+arch=('i686' 'x86_64')
+url="https://pecl.php.net/package/geoip"
+license=('PHP')
+depends=('php56>=5.6.17-3' 'geoip')
+backup=('etc/php56/conf.d/geoip.ini')
+source=("https://pecl.php.net/get/geoip-${pkgver}.tgz")
+
+build() {
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
+
+ phpize56
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
+
+ make INSTALL_ROOT="$pkgdir" install
+ echo ';extension=geoip.so' >geoip.ini
+ install -Dm644 geoip.ini "$pkgdir/etc/php56/conf.d/geoip.ini"
+}
+
+# vim:set ts=2 sw=2 et:
+md5sums=('1a779f7b3dd275e497846ce302b3776b')