aboutsummaryrefslogtreecommitdiffstats
path: root/community/php8-pecl-couchbase/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/php8-pecl-couchbase/APKBUILD')
-rw-r--r--community/php8-pecl-couchbase/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/community/php8-pecl-couchbase/APKBUILD b/community/php8-pecl-couchbase/APKBUILD
new file mode 100644
index 0000000000..6458005353
--- /dev/null
+++ b/community/php8-pecl-couchbase/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Nathan Johnson <nathan@nathanjohnson.info>
+# Maintainer: Andy Postnikov <apostnikov@gmail.com>
+pkgname=php8-pecl-couchbase
+_extname=couchbase
+pkgver=3.1.2
+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="
+f43b25f43f6bb3f0c3b76aa904a3406c99ff49e65b46d1bf017b78773bfc66a9d5275d5e69907c4d971eab545ee2a91e786018c94f15f6181d10813a2055d6ce php-pecl-couchbase-3.1.2.tgz
+"