blob: 61c1327ed0fc3706464982a40d6bdd820518ece2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Contributor: Nathan Johnson <nathan@nathanjohnson.info>
# Maintainer: Nathan Johnson <nathan@nathanjohnson.info>
pkgname=php7-pecl-couchbase
_pkgreal=couchbase
pkgver=2.6.1
pkgrel=1
pkgdesc="PHP extension for Couchbase - PECL"
url="https://pecl.php.net/package/couchbase"
arch="all"
license="Apache-2.0"
depends="php7-common php7-json php7-pecl-igbinary"
makedepends="php7-dev autoconf libcouchbase-dev re2c zlib-dev"
source="$pkgname-$pkgver.tgz::https://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
builddir="$srcdir/$_pkgreal-$pkgver"
provides="php7-couchbase=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-couchbase" # for backward compatibility
build() {
cd "$builddir"
phpize7
./configure --prefix=/usr --with-php-config=php-config7
make
}
check() {
# require couchbase and phpunit
php7 -d extension="$builddir"/modules/$_pkgreal.so --ri $_pkgreal
}
package() {
local confdir="$pkgdir/etc/php7/conf.d"
cd "$builddir"
make INSTALL_ROOT="$pkgdir" install
mkdir -p "$confdir"
echo "extension=$_pkgreal.so" > "$confdir"/$_pkgreal.ini
}
sha512sums="8a1548f51b081d25e2d331f7de4ef8e35fe232feefb2681258aecc4b51ed79928bf472898aad326b61e40af0f113bfc349ddc3cf7f3f984a06da4cfd14206577 php7-pecl-couchbase-2.6.1.tgz"
|