summaryrefslogtreecommitdiff
path: root/community/cassandra-cpp-driver/APKBUILD
blob: 4e62366148276fc05007e51c16d9b4b41928702b (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
# Contributor: Gennady Feldman <gena01@gmail.com>
# Maintainer: Gennady Feldman <gena01@gmail.com>
pkgname=cassandra-cpp-driver
_pkgreal=cpp-driver
pkgver=2.7.0
pkgrel=1
pkgdesc="Cassandra CPP Driver"
url="http://datastax.github.io/cpp-driver/"
arch="x86_64 x86 ppc64le"
license="Apache-2.0"
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 .. \
		|| return 1
	make
}

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

sha512sums="0b674c804ccc56369fc984055b88b2768a80b15925e65ffd7262ca2aa45bcd966215cecf3281d1429b8efb8e5a35be580cbb21e4abb3367190329d0f41f5c50b  cpp-driver-2.7.0.tar.gz"