aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php-geoip/APKBUILD
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2015-11-06 16:59:54 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-11-09 08:43:34 +0000
commitddaf30a9698b6005efea8664634f37eb60bc0bb6 (patch)
tree012c5d618b79fb1fa909e0ffe55bebb0041c9e9e /testing/php-geoip/APKBUILD
parent794f6aa3f3457bc6f05fd2daaef1b5f6189b8d74 (diff)
downloadaports-ddaf30a9698b6005efea8664634f37eb60bc0bb6.tar.bz2
aports-ddaf30a9698b6005efea8664634f37eb60bc0bb6.tar.xz
testing/php-geoip: new aport (http://bugs.alpinelinux.org/issues/4814)
Diffstat (limited to 'testing/php-geoip/APKBUILD')
-rw-r--r--testing/php-geoip/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/php-geoip/APKBUILD b/testing/php-geoip/APKBUILD
new file mode 100644
index 0000000000..2740c74e10
--- /dev/null
+++ b/testing/php-geoip/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: Valery Kartel <valery.kartel@gmail.com>
+# Maintainer: Valery Kartel <valery.kartel@gmail.com>
+pkgname=php-geoip
+_pkgreal=geoip
+pkgver=1.1.0
+_pkgver=${pkgver/_rc/RC}
+pkgrel=0
+pkgdesc="PHP extension allows you to find the location of an IP address"
+url="http://pecl.php.net/package/$_pkgreal"
+arch="all"
+license="PHP"
+depends=
+pecldepends="php-dev autoconf"
+makedepends="$pecldepends geoip-dev"
+install=""
+subpackages=""
+source="http://pecl.php.net/get/$_pkgreal-$_pkgver.tgz"
+
+_builddir="$srcdir"/$_pkgreal-$_pkgver
+
+build() {
+ cd "$_builddir"
+ phpize || return 1
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make INSTALL_ROOT="$pkgdir/" install || return 1
+ install -d "$pkgdir"/etc/php/conf.d || return 1
+ echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php/conf.d/$_pkgreal.ini
+}
+
+md5sums="1a779f7b3dd275e497846ce302b3776b geoip-1.1.0.tgz"
+sha256sums="82c6deb7264d2ff7c4d6c45a7d27cff7ab097be965795e317e04a9c5b7be98b9 geoip-1.1.0.tgz"
+sha512sums="8a0fc698a234d3b2c01f2a0c05c28025d98a5d3dce509ba19ee462abae0fd0f5631d96d3e8bba4fce6c23b278ec3875da5e8535971c7d880e2e307a097dc30a1 geoip-1.1.0.tgz"