aboutsummaryrefslogtreecommitdiffstats
path: root/testing/cassandra-cpp-driver/APKBUILD
blob: 036c886653a9be8c9c33457d09801ef149b70425 (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=cassandra-cpp-driver
_pkgreal=cpp-driver
pkgver=2.4.3
pkgrel=0
pkgdesc="Cassandra CPP Driver"
url="http://datastax.github.io/cpp-driver/"
arch="all"
license="ASL 2.0"
depends=
makedepends="cmake make openssl-dev libuv-dev"
install=""
subpackages="$pkgname-dev"
source="$_pkgreal-$pkgver.tar.gz::https://github.com/datastax/cpp-driver/archive/$pkgver.tar.gz"

builddir="$srcdir"/$_pkgreal-$pkgver

build() {
	cd "$builddir"
	mkdir build
	cd build
	cmake -DCMAKE_BUILD_TYPE=RELEASE -DCASS_BUILD_STATIC=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_LIBDIR=lib .. || return 1
	make || return 1
}

package() {
	cd "$builddir"/build
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="d25e0bde0c030f12882a24a8866cc93f  cpp-driver-2.4.3.tar.gz"
sha256sums="d3364d1b8bc71ec4409ff7432f10d1edbdb1329ab8315418858561065b024bdf  cpp-driver-2.4.3.tar.gz"
sha512sums="a23fdd77a19dd99bd077af2d51163471c30dcb88c59a1c8c5221c4369e46637ecbb5ffa4d76ed5f60d1a0d0feabf05a731cd0b377ae5bbc901ba5beeb6055953  cpp-driver-2.4.3.tar.gz"