blob: 23b52bee6be40572e191d7da6fd401a95dbc25aa (
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
|
# Maintainer: Skunnyk <skunnyk@archlinux.fr>
pkgname=php-cassandra-driver-git
_pkgname=php-driver
pkgver=1.2.1.r2.gca6d5ac
pkgrel=1
pkgdesc="DataStax PHP Driver for Apache Cassandra - Git version"
arch=(x86_64 i686)
url="https://github.com/datastax/php-driver"
license=('Apache')
depends=('cassandra-cpp-driver>=2.4.2' 'php')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=(git+https://github.com/datastax/php-driver.git)
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${_pkgname%}/ext"
git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/${_pkgname%}/ext"
phpize
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/${_pkgname%}/ext"
make INSTALL_ROOT="$pkgdir/" install
}
|