aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2021-05-10 01:42:08 +0300
committerAndy Postnikov <apostnikov@gmail.com>2021-05-10 01:42:27 +0300
commit8bcc0b5b6930f63e0a69beb9f60d51fb2121f78d (patch)
treede65fe3157f1ed4d17e2ab5c30d48fe640060360 /community
parentf56ba0f258f1bad4759645f05449b2d8475cc1eb (diff)
downloadaports-8bcc0b5b6930f63e0a69beb9f60d51fb2121f78d.tar.gz
aports-8bcc0b5b6930f63e0a69beb9f60d51fb2121f78d.tar.bz2
aports-8bcc0b5b6930f63e0a69beb9f60d51fb2121f78d.tar.xz
community/php8-pecl-couchbase: move from testing
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"