# Contributor: Nathan Johnson # Maintainer: Nathan Johnson 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"