aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
Diffstat (limited to 'community')
-rw-r--r--community/php8-pecl-couchbase/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/community/php8-pecl-couchbase/APKBUILD b/community/php8-pecl-couchbase/APKBUILD
new file mode 100644
index 0000000000..91a7d518d5
--- /dev/null
+++ b/community/php8-pecl-couchbase/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Nathan Johnson <nathan@nathanjohnson.info>
+# Maintainer: Andy Postnikov <apostnikov@gmail.com>
+pkgname=php8-pecl-couchbase
+_extname=couchbase
+pkgver=3.1.1
+pkgrel=0
+pkgdesc="PHP 8 extension for Couchbase - PECL"
+url="https://pecl.php.net/package/couchbase"
+arch="all"
+license="Apache-2.0"
+depends="php8-pecl-igbinary"
+makedepends="php8-dev libcouchbase-dev chrpath"
+source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
+builddir="$srcdir/$_extname-$pkgver"
+
+build() {
+ phpize8
+ ./configure --prefix=/usr --with-php-config=php-config8
+ make
+}
+
+check() {
+ # require couchbase and phpunit
+ php8 -d extension="$builddir"/modules/$_extname.so --ri $_extname
+}
+
+package() {
+ make INSTALL_ROOT="$pkgdir" install
+ chrpath -d "$pkgdir"/usr/lib/php8/modules/$_extname.so
+
+ local _confdir="$pkgdir"/etc/php8/conf.d
+ mkdir -p $_confdir
+ echo "extension=$_extname" > $_confdir/$_extname.ini
+}
+
+sha512sums="9fb53f2190d1ca426355ed680f3a4b81f0bac7aeb1b0fe26056dbb8fd97ce75e75ba47624fd03ca3e0419125cce66ba27500dcd173a05edbe14fed132d436678 php-pecl-couchbase-3.1.1.tgz"