aports/testing/php81-pecl-couchbase/APKBUILD
2024-08-28 17:58:15 +02:00

41 lines
1.2 KiB
Plaintext

# Contributor: Nathan Johnson <nathan@nathanjohnson.info>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php81-pecl-couchbase
_extname=couchbase
pkgver=4.2.3
pkgrel=0
pkgdesc="PHP 8.1 extension for Couchbase - PECL"
url="https://pecl.php.net/package/couchbase"
# loongarch64: fails to build boringssl
arch="all !riscv64 !ppc64le !s390x !loongarch64" # ftbfs
license="Apache-2.0"
_phpv=81
_php=php$_phpv
depends="$_php-pecl-igbinary"
makedepends="$_php-dev openssl-dev>3 linux-headers cmake"
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir/$_extname-$pkgver"
build() {
phpize$_phpv
./configure --prefix=/usr --with-php-config=php-config$_phpv
make
}
check() {
# no tests shipped via PECL
$_php -d extension="$builddir"/modules/$_extname.so --ri $_extname
}
package() {
make INSTALL_ROOT="$pkgdir" install
local _confdir="$pkgdir"/etc/$_php/conf.d
mkdir -p $_confdir
echo "extension=$_extname" > $_confdir/$_extname.ini
}
sha512sums="
ac6e6ba8cb2ae7dd24f8505411c5a9023fb6f3c62d23510a3242a1f90cea367feff4c82aeb72e9234794dbbd301cf3b4e0e9a659066dd8649a47629c9521c0cb php-pecl-couchbase-4.2.3.tgz
"