From d80b679a7d73b55df0f340da427f67f5c110061c Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Mon, 1 May 2017 23:41:56 +0200 Subject: testing/php7-couchbase: build only for php7, cleanup and improve abuild --- testing/php7-couchbase/APKBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 testing/php7-couchbase/APKBUILD (limited to 'testing/php7-couchbase') diff --git a/testing/php7-couchbase/APKBUILD b/testing/php7-couchbase/APKBUILD new file mode 100644 index 0000000000..f1c7ec78e1 --- /dev/null +++ b/testing/php7-couchbase/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: Nathan Johnson +# Maintainer: Nathan Johnson +pkgname=php7-couchbase +_pkgreal=couchbase +pkgver=2.3.1 +pkgrel=0 +_phpver=${pkgname#php} +_phpver=${_phpver%%-*} +pkgdesc="PHP$_phpver extension for Couchbase" +url="http://pecl.php.net/package/couchbase" +arch="all" +license="ASL-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="8a0003968d6ec7fec2961ea24c0677962c165cd0db4ebbcd3ec0d7ef50bd5e9788a4725ae4c18c5a558b30de44392c176d93d23980d489fd255546393a7a77f5 php7-couchbase-2.3.1.tgz" -- cgit v1.2.3