aboutsummaryrefslogtreecommitdiffstats
path: root/community/cassandra-cpp-driver/APKBUILD
blob: f48a46aea725e7d0aae99c97e8d6b626db00008f (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.6.0
pkgrel=0
pkgdesc="Cassandra CPP Driver"
url="http://datastax.github.io/cpp-driver/"
arch="x86_64 x86"
license="ASL 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="ea04859ebc1f472e654cf7d2e93e57a700de7180307eb4b6aa4b5d6941b56a666103ddd93f2821cd055fcb95658c0ab876d001aa625ffb29c2ce94c034dc8a04  cpp-driver-2.6.0.tar.gz"