aboutsummaryrefslogtreecommitdiffstats
path: root/community/cassandra-cpp-driver/APKBUILD
blob: 07b8d8bc17a0338309a4ad492966e6952bd1c3bf (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.8.1
pkgrel=2
pkgdesc="Cassandra CPP Driver"
url="http://datastax.github.io/cpp-driver/"
arch="x86_64 x86 ppc64le"
license="Apache-2.0"
options="!check"  # FIXME: cassandra_integration_tests won't link
depends=""
makedepends="cmake make libressl-dev libuv-dev"
subpackages="$pkgname-dev"
source="$_pkgreal-$pkgver.tar.gz::https://github.com/datastax/cpp-driver/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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

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

sha512sums="1b303e874d6b24cb429ec92d6030880ad7d7b28b167a25c62060626c206f623863ecf58eab33e89b0efea4a474ca9500e1701b719ac203c76b0875c2b5d0a1c8  cpp-driver-2.8.1.tar.gz"