mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-02 12:21:22 +02:00
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
# Contributor: Nathan Johnson <nathan@nathanjohnson.info>
|
|
# Maintainer: Nathan Johnson <nathan@nathanjohnson.info>
|
|
pkgname=php7-couchbase
|
|
_pkgreal=couchbase
|
|
pkgver=2.4.6
|
|
pkgrel=0
|
|
_phpver=${pkgname#php}
|
|
_phpver=${_phpver%%-*}
|
|
pkgdesc="PHP$_phpver extension for Couchbase"
|
|
url="http://pecl.php.net/package/couchbase"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
depends="php$_phpver-common php$_phpver-json"
|
|
makedepends="php$_phpver-dev autoconf libcouchbase-dev zlib-dev"
|
|
source="$pkgname-$pkgver.tgz::http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
|
|
options="!check"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
|
|
phpize$_phpver
|
|
./configure --prefix=/usr --with-php-config=php-config$_phpver
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
|
|
}
|
|
|
|
package() {
|
|
local confdir="$pkgdir/etc/php$_phpver/conf.d"
|
|
cd "$builddir"
|
|
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
|
|
mkdir -p "$confdir"
|
|
echo "extension=$_pkgreal.so" > "$confdir"/$_pkgreal.ini
|
|
}
|
|
|
|
sha512sums="15dacbea0fb82101a5dfd20b5ed5d95d133af67c66fff95366af52eeb54f3c0eb928721bfa32b6a6dd1e258e80b5210f970999d9263f7a6172af4f851da812ab php7-couchbase-2.4.6.tgz"
|