# Contributor: Nathan Johnson # Maintainer: Andy Postnikov pkgname=php8-pecl-couchbase _extname=couchbase pkgver=4.1.1 pkgrel=0 pkgdesc="PHP 8.0 extension for Couchbase - PECL" url="https://pecl.php.net/package/couchbase" arch="all !riscv64" # ftbfs license="Apache-2.0" depends="php8-pecl-igbinary" makedepends="php8-dev openssl-dev>3 linux-headers cmake 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() { # no tests shipped via PECL php8 -d extension="$builddir"/modules/$_extname.so --ri $_extname } package() { make INSTALL_ROOT="$pkgdir" install chrpath -r "/usr/lib/php8/modules" "$pkgdir"/usr/lib/php8/modules/$_extname.so chrpath -d "$pkgdir"/usr/lib/php8/modules/libcouchbase_php_wrapper.so local _confdir="$pkgdir"/etc/php8/conf.d mkdir -p $_confdir echo "extension=$_extname" > $_confdir/$_extname.ini } sha512sums=" 8664dc05e72b37d2cc33b2c4e632de1f0ae5a3427ad1bae94e266a0b68105e727c693de24a6bc2301787b2e047ed7d31139022068d413d58229c2c829223edbc php-pecl-couchbase-4.1.1.tgz "