aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-cassandra/APKBUILD
blob: 7adfecaa017192587ccf131c9cb9ec8381318381 (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.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"