blob: ad5f973a1007471d76f42a24f125f310d446f3bc (
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
37
38
39
40
|
# Maintainer: Martin Horský <martin@horsky.me>
# Contributors: Aleksandr Matuzok <sherilynhope@gmail.com>, Patryk Jaworski <regalis@regalis.tech>, John Chen <john.chen@10gen.com>
pkgname=mongo-cxx-driver
pkgver=3.10.2
pkgrel=1
pkgdesc="C++ driver for MongoDB"
arch=('i686' 'x86_64')
url="http://mongocxx.org/"
license=("Apache-2.0")
depends=('mongo-c-driver>=1.27.0' glibc gcc-libs)
makedepends=(cmake gcc)
provides=(libbsoncxx libmongocxx)
conflicts=(libbsoncxx libmongocxx)
source=(https://github.com/mongodb/mongo-cxx-driver/releases/download/r${pkgver}/mongo-cxx-driver-r${pkgver}.tar.gz)
sha256sums=('52b99b2866019b5ea25d15c5a39e2a88c70fe1259c40f1091deff8bfae0194be')
build() {
if [ -z "$CMAKE_GENERATOR" ]; then
export CMAKE_GENERATOR=Ninja
fi
cd "${pkgname}-r$pkgver/build/"
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/ \
-DCMAKE_CXX_STANDARD=17 \
-DENABLE_UNINSTALL=0 \
-DENABLE_TESTS=0 \
../
cmake \
--build . \
-j "$nproc"
}
package() {
cd "${pkgname}-r$pkgver/build/"
cmake \
--install . \
--prefix "$pkgdir/usr"
}
|