1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 18:55:29 +03:00
aports/community/php7-pecl-couchbase/APKBUILD
2021-07-27 18:38:52 +00:00

40 lines
1.2 KiB
Text

# Contributor: Nathan Johnson <nathan@nathanjohnson.info>
# Maintainer: Nathan Johnson <nathan@nathanjohnson.info>
pkgname=php7-pecl-couchbase
_extname=couchbase
pkgver=3.2.0
pkgrel=0
pkgdesc="PHP 7 extension for Couchbase - PECL"
url="https://pecl.php.net/package/couchbase"
arch="all"
license="Apache-2.0"
depends="php7-json php7-pecl-igbinary"
makedepends="php7-dev libcouchbase-dev 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() {
# require couchbase and phpunit
php7 -d extension="$builddir"/modules/$_extname.so --ri $_extname
}
package() {
make INSTALL_ROOT="$pkgdir" install
chrpath -d "$pkgdir"/usr/lib/php7/modules/$_extname.so
local _confdir="$pkgdir"/etc/php7/conf.d
mkdir -p $_confdir
echo "extension=$_extname" > $_confdir/$_extname.ini
}
sha512sums="
fb2b2a10bdf878fe8353fb2a48c46c97af7e4542c2c0bbf140920e11e40615b1b67193b8fb0b0fc5fdf185d6a446d2227be531eec39666aaf089d84ce850218f php-pecl-couchbase-3.2.0.tgz
"