aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-couchbase/APKBUILD
blob: c4b6bf5204b2d2c5cc600a3d75fc66fe6a48256f (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
# Contributor: Nathan Johnson <nathan@nathanjohnson.info>
# Maintainer: Nathan Johnson <nathan@nathanjohnson.info>
pkgname=php7-couchbase
_pkgreal=couchbase
pkgver=2.2.0
pkgrel=0
pkgdesc="PHP extension couchbase"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
license="ASL 2.0"
depends=""
pecldepends="php7-dev autoconf"
makedepends="$pecldepends libcouchbase-dev zlib-dev"
source="${pkgname}-${pkgver}.tgz::http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	cd "$builddir"
	phpize7 || return 1
	./configure --prefix=/usr --with-php-config=/usr/bin/php-config7 || return 1
	make || return 1
	make test || return 1
}

package() {
	cd "$builddir"
	make INSTALL_ROOT="$pkgdir"/ install || return 1
	install -d "$pkgdir"/etc/php5/conf.d || return 1
	echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php5/conf.d/$_pkgreal.ini
}

md5sums="2fc38ba46db959daaadd4387579fdab8  php7-couchbase-2.2.0.tgz"
sha256sums="6ce11f344bd01df7e8b96894ea3db44e72a273633d67f80dbc130147cc161acc  php7-couchbase-2.2.0.tgz"
sha512sums="8c3e01e6c7e9b8509ac8900678a5fc4a47d8dfd0f31979b2a4c86f0a6ce195645dd60c4eff1b36b070cb3d9c78cd63edf7c9f162dc1c505b3e8d365a72cfd1f3  php7-couchbase-2.2.0.tgz"