aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-pecl-maxminddb/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/php7-pecl-maxminddb/APKBUILD')
-rw-r--r--testing/php7-pecl-maxminddb/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/php7-pecl-maxminddb/APKBUILD b/testing/php7-pecl-maxminddb/APKBUILD
new file mode 100644
index 00000000000..a378113d21e
--- /dev/null
+++ b/testing/php7-pecl-maxminddb/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: TBK <alpine@jjtc.eu>
+# Maintainer: TBK <alpine@jjtc.eu>
+pkgname=php7-pecl-maxminddb
+_extname=maxminddb
+pkgver=1.11.0
+pkgrel=0
+pkgdesc="PHP 7.4 MaxMind DB Reader extension - PECL"
+url="https://pecl.php.net/package/maxminddb"
+arch="all"
+license="Apache-2.0"
+depends="php7-bcmath"
+makedepends="libmaxminddb-dev php7-dev"
+source="php-pecl-$_extname-$pkgver.tar.gz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
+builddir="$srcdir/$_extname-$pkgver/ext"
+provides="php7-maxminddb=$pkgver-r$pkgrel" # for backward compatibility
+replaces="php7-maxminddb" # for backward compatibility
+
+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" > $confdir/maxminddb.ini
+}
+
+sha512sums="
+9ae2b168519d67803026862a035cf7ab392f4276a662fb674b4f3b9c2c6e28616b609b9121e0af46a599e16895f59282c4ff4db47ac22134bd5bbdec4aec950f php-pecl-maxminddb-1.11.0.tar.gz
+"