summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorThore Boedecker2016-01-15 00:06:01 +0100
committerThore Boedecker2016-01-15 00:06:01 +0100
commitf241a5a64da5a5d2279d01182d90be0cf487ae60 (patch)
tree9b1dc8a3bad2aa0408872ebcdf6cd70aeda59a5d
downloadaur-f241a5a64da5a5d2279d01182d90be0cf487ae60.tar.gz
Initial commit for php56 version
Signed-off-by: Thore Boedecker <me@foxxx0.de>
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD34
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f4ac110faf1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by mksrcinfo v8
+# Thu Jan 14 23:05:53 UTC 2016
+pkgbase = php56-geoip
+ pkgdesc = GeoIP module for PHP
+ pkgver = 1.1.0
+ pkgrel = 2
+ url = https://pecl.php.net/package/geoip
+ arch = i686
+ arch = x86_64
+ license = PHP
+ depends = php56>=5.6.17-3
+ depends = geoip
+ backup = etc/php56/conf.d/geoip.ini
+ source = https://pecl.php.net/get/geoip-1.1.0.tgz
+ md5sums = 1a779f7b3dd275e497846ce302b3776b
+
+pkgname = php56-geoip
+
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')