aboutsummaryrefslogtreecommitdiffstats
path: root/community/php8-pecl-mongodb/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/php8-pecl-mongodb/APKBUILD')
-rw-r--r--community/php8-pecl-mongodb/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/community/php8-pecl-mongodb/APKBUILD b/community/php8-pecl-mongodb/APKBUILD
new file mode 100644
index 0000000000..ec525c6c4d
--- /dev/null
+++ b/community/php8-pecl-mongodb/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
+# Maintainer: Andy Postnikov <apostnikov@gmail.com>
+pkgname=php8-pecl-mongodb
+_extname=mongodb
+pkgver=1.9.0
+pkgrel=0
+pkgdesc="PHP 8 MongoDB driver - PECL"
+url="https://pecl.php.net/package/mongodb"
+arch="all"
+license="Apache-2.0"
+depends="php8-common"
+makedepends="cyrus-sasl-dev icu-dev openssl-dev pcre-dev php8-dev snappy-dev"
+source="php-pecl-mongodb.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
+builddir="$srcdir"/$_extname-$pkgver
+provides="php8-mongodb=$pkgver-r$pkgrel" # for backward compatibility
+replaces="php8-mongodb" # for backward compatibility
+
+build() {
+ phpize8
+ ./configure --prefix=/usr \
+ --with-php-config=/usr/bin/php-config8
+ make
+}
+
+check() {
+ # tests requires additional dependencies (vagrant)
+ php8 -d extension=modules/$_extname.so --ri $_extname
+}
+
+package() {
+ make INSTALL_ROOT="$pkgdir" install
+
+ local _confdir="$pkgdir"/etc/php8/conf.d
+ install -d $_confdir
+ echo "extension=$_extname.so" > $_confdir/$_extname.ini
+}
+
+sha512sums="80ad3caddde045fe5e879167b2b4cfc27bdabf6d3667df4df73f33503c329b0d6bf4da6b287fe454301a9a390434eec19971059c6de8d4c9720a79fe7680366d php-pecl-mongodb.tgz"