1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/testing/php7-pecl-couchbase/APKBUILD

41 lines
1.3 KiB
Text

# Contributor: Nathan Johnson <nathan@nathanjohnson.info>
# Maintainer: Nathan Johnson <nathan@nathanjohnson.info>
pkgname=php7-pecl-couchbase
_extname=couchbase
pkgver=4.1.0
pkgrel=1
pkgdesc="PHP 7 extension for Couchbase - PECL"
url="https://pecl.php.net/package/couchbase"
arch="all !riscv64" # ftbfs
license="Apache-2.0"
depends="php7-json php7-pecl-igbinary"
makedepends="php7-dev openssl-dev linux-headers cmake chrpath"
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir/$_extname-$pkgver"
provides="php7-couchbase=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-couchbase" # for backward compatibility
build() {
phpize7
./configure --prefix=/usr --with-php-config=php-config7
make
}
check() {
# no tests shipped via PECL
php7 -d extension="$builddir"/modules/$_extname.so --ri $_extname
}
package() {
make INSTALL_ROOT="$pkgdir" install
chrpath -r "/usr/lib/php7/modules" "$pkgdir"/usr/lib/php7/modules/$_extname.so
chrpath -d "$pkgdir"/usr/lib/php7/modules/libcouchbase_php_wrapper.so
local _confdir="$pkgdir"/etc/php7/conf.d
mkdir -p $_confdir
echo "extension=$_extname" > $_confdir/$_extname.ini
}
sha512sums="
220e91a15e1478601009776f448ff53360ee9a054ad60c7d4e1231d044c6c142518f37af2a951ba04db41e7423fdb73d90a3dc0f7e891d08c4382ff292125888 php-pecl-couchbase-4.1.0.tgz
"