aboutsummaryrefslogtreecommitdiffstats
path: root/community/cassandra-cpp-driver/APKBUILD
blob: e0bbadb51c6899366e1b66574a5e3b820a436a21 (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
35
36
# Contributor: Gennady Feldman <gena01@gmail.com>
# Maintainer: Gennady Feldman <gena01@gmail.com>
pkgname=cassandra-cpp-driver
_pkgname=cpp-driver
pkgver=2.10.0
pkgrel=0
pkgdesc="Cassandra CPP Driver"
url="https://datastax.github.io/cpp-driver/"
arch="aarch64 x86_64 x86 ppc64le"
license="Apache-2.0"
options="!check"  # FIXME: cassandra_integration_tests won't link
depends=""
makedepends="cmake make openssl-dev libuv-dev"
subpackages="$pkgname-dev"
source="$_pkgname-$pkgver.tar.gz::https://github.com/datastax/cpp-driver/archive/$pkgver.tar.gz
	"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	mkdir -p "$builddir"/build
	cd "$builddir"/build
	export CXXFLAGS="$CXXFLAGS -Wno-error=deprecated-copy"
	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="92e214a5e2358955999dc58caccc66483676ac274c10703bcd628c144190d6e878418fe9471672db726508fba33611c930526710ffe6ec583f4f54d5b9d280d9  cpp-driver-2.10.0.tar.gz"