summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 278c29d259279b4c6853d166aacbc16cc8ba8f34 (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
# Maintainer: Skunnyk <skunnyk@archlinux.fr>
pkgname=php-cassandra-driver
_pkgname=php-driver
pkgver=1.0.0.rc
_pkgver=1.0.0-rc
pkgrel=2
pkgdesc="DataStax PHP Driver for Apache Cassandra"
arch=(i686 x86_64)
url="https://github.com/datastax/php-driver"
license=('Apache')
depends=('php' 'cassandra-cpp-driver>=2.0.0') 
source=("https://codeload.github.com/datastax/${_pkgname}/tar.gz/v$_pkgver")

build() {
	cd "$_pkgname-$_pkgver/ext"
    phpize
    ./configure --prefix=/usr
	make
}

package() {
	cd "$_pkgname-$_pkgver/ext"
	echo ';extension=cassandra.so' > cassandra.ini 
	install -Dm644 cassandra.ini "$pkgdir/etc/php/conf.d/cassandra.ini"
	make INSTALL_ROOT="$pkgdir/" install
}
md5sums=('2f283ea7a1fe63dab1eda3d3bfbff960')