aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-maxminddb
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.eu>2020-02-24 13:49:49 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-02-24 13:10:50 -0300
commit823712c20793c3b7de252df99d5aae4879a97e45 (patch)
treed63e6fb5f8bb30d7283a5941bda23088b579b53a /testing/php7-maxminddb
parentcec6fb058899048aeea3e2d49ecdff23a3baf9ef (diff)
downloadaports-823712c20793c3b7de252df99d5aae4879a97e45.tar.bz2
aports-823712c20793c3b7de252df99d5aae4879a97e45.tar.xz
testing/php7-maxminddb: new aport
Resolves #11246
Diffstat (limited to 'testing/php7-maxminddb')
-rw-r--r--testing/php7-maxminddb/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/php7-maxminddb/APKBUILD b/testing/php7-maxminddb/APKBUILD
new file mode 100644
index 0000000000..5b12d81e02
--- /dev/null
+++ b/testing/php7-maxminddb/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: TBK <alpine@jjtc.eu>
+# Maintainer: TBK <alpine@jjtc.eu>
+pkgname=php7-maxminddb
+_pkgreal=MaxMind-DB-Reader-php
+pkgver=1.6.0
+pkgrel=0
+pkgdesc="PHP7 MaxMind DB Reader extension"
+url="https://github.com/maxmind/MaxMind-DB-Reader-php"
+arch="all"
+license="Apache-2.0"
+depends="php7-common"
+makedepends="libmaxminddb-dev php7-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/maxmind/MaxMind-DB-Reader-php/archive/v$pkgver.tar.gz"
+builddir="$srcdir"/$_pkgreal-$pkgver/ext
+
+build() {
+ phpize7
+ ./configure --prefix=/usr \
+ --with-php-config=/usr/bin/php-config7
+ make
+}
+
+check() {
+ make test NO_INTERACTION=1 REPORT_EXIT_STATUS=1
+}
+
+package() {
+ make INSTALL_ROOT="$pkgdir/" install
+
+ local confdir="$pkgdir/etc/php7/conf.d"
+ install -d $confdir
+ echo "extension=maxminddb.so" > $confdir/maxminddb.ini
+}
+
+sha512sums="e8c0ccf2cfcedf7527b4e3f858d2ed0e70add60692fff4a65f08e5cb885516b7c2a3ceaa3c21713369cd8ffca2b671d764063236de1d729cfc5173f7d5dd4607 php7-maxminddb-1.6.0.tar.gz"