blob: 20a9263c961fb983e98cd094b107f46bbb3f83e6 (
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
|
# Contributor: Gennady Feldman <gena01@gmail.com>
# Maintainer: Gennady Feldman <gena01@gmail.com>
pkgname=php7-cassandra
_pkgreal=cassandra
pkgver=1.3.2
pkgrel=0
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="2b3605f24e81b247afa5ea6bb8e1d1c24216a281babfbd750b973fb2094c864a3d45c7769c759bfe2f3f31360766a5b2eb1ff0ee4414ec9a9e9c5f164748242a cassandra-1.3.2.tgz"
|