aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-cassandra/APKBUILD
blob: 8447f70b9f1a2a974678cd2f9c2b5a06f5694a79 (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: Gennady Feldman <gena01@gmail.com>
# Maintainer: Gennady Feldman <gena01@gmail.com>
pkgname=php7-cassandra
_pkgreal=cassandra
pkgver=1.2.2
pkgrel=0
pkgdesc="PHP7 extension: cassandra"
url="http://pecl.php.net/package/$_pkgreal"
arch="x86_64 x86"
license="PHP"
depends=""
makedepends="php7-dev autoconf cassandra-cpp-driver-dev>=2.4.2 gmp-dev libuv-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
}

md5sums="2226a4d66f8e0a4de85656f10472afc5  cassandra-1.2.2.tgz"
sha256sums="31db2a9ee2275e69ba0f7b0eec098f7a80cc6afa7c6a4eaa2d9d841ad040fb22  cassandra-1.2.2.tgz"
sha512sums="cda256c8159be0b8f47ab46e23b9c24e3bbd9878679660fc956682d62221a289e262a394bfbff257a314d765ff22abd735a9624b2f8045219b8452b9bc8cb2b3  cassandra-1.2.2.tgz"