# Contributor: Gennady Feldman # Maintainer: Gennady Feldman pkgname=php7-cassandra _pkgreal=cassandra pkgver=1.3.0 pkgrel=1 pkgdesc="PHP7 extension: cassandra" url="http://pecl.php.net/package/$_pkgreal" arch="x86_64 x86 ppc64le" license="PHP" depends="" makedepends="php7-dev autoconf cassandra-cpp-driver-dev>=2.4.2 gmp-dev libuv-dev pcre-dev" source="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 } package() { cd "$builddir" make INSTALL_ROOT="$pkgdir"/ install || return 1 install -d "$pkgdir"/etc/php7/conf.d || return 1 echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini } sha512sums="e3d69b7fb9278f7b6c8e3faba8c9b5315c779e4334051d4208c14be887164889f79bbc87870ba90a2da0117eeabe1028145af076284a653cb82e98fd6743cf14 cassandra-1.3.0.tgz"