aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-couchbase/APKBUILD
blob: f112d4e0ba1e230b2aabe7e0062092e563b2c5d5 (plain) (blame)
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
# Contributor: Nathan Johnson <nathan@nathanjohnson.info>
# Maintainer: Nathan Johnson <nathan@nathanjohnson.info>
pkgname=php7-couchbase
_pkgreal=couchbase
pkgver=2.4.1
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
}

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="758feaad5f9cf5c6e09cc89802019665487d423c59c02b4543ae011f0f214ebe073dc2adf74e9a8559c8e9c179a2559ba61905e06c895bccfc55dd6b456fb41a  php7-couchbase-2.4.1.tgz"