Package Details: mongo-cxx-driver r3.4.0-2

Git Clone URL: https://aur.archlinux.org/mongo-cxx-driver.git (read-only)
Package Base: mongo-cxx-driver
Description: The official MongoDB C++ driver library
Upstream URL: http://docs.mongodb.org/ecosystem/drivers/cpp/
Licenses: Apache
Submitter: jbreams
Maintainer: sherilyn
Last Packager: sherilyn
Votes: 7
Popularity: 0.000000
First Submitted: 2016-01-28 21:25
Last Updated: 2019-04-03 09:17

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

xantares commented on 2019-04-04 17:09

hello,

  • DONT build as root
  • also makepkg uses MAKEFLAGS, so no need to override -j make option:

build {

cd "$pkgname-$pkgver"

mkdir -p build && cd build

cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..

make

package {

cd "$pkgname-$pkgver/build"

make install DESTDIR="$pkgdir"

gauravjuvekar commented on 2018-12-17 16:23

Packages should not install to /usr/local

From 19f6fbf2b57f6513d186064bc9e593adeb517e03 Mon Sep 17 00:00:00 2001
From: Gaurav Juvekar <gauravjuvekar@gmail.com>
Date: Sun, 16 Dec 2018 20:22:25 -0500
Subject: [PATCH] Don't install to /usr/local

---
 PKGBUILD | 19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index b3db26a..f4f83e9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Aleksandr Matuzok <sherilynhope@gmail.com>
 pkgname=mongo-cxx-driver
 pkgver=r3.3.1
-pkgrel=2
+pkgrel=3
 pkgdesc="The official MongoDB C++ driver library"
 arch=('i686' 'x86_64')
 url="http://docs.mongodb.org/ecosystem/drivers/cpp/"
@@ -10,21 +10,14 @@ groups=()
 depends=("libmongoc")
 makedepends=("cmake")
 source=("https://github.com/mongodb/mongo-cxx-driver/archive/$pkgver.tar.gz")
-
-prepare() {
-   cd "$pkgname-$pkgver"
-    mkdir -p $pkgdir/usr
-}
-
 build() {
-   cd "$pkgname-$pkgver/build"
-    echo $pkgdir
-    DESTDIR=$pkgdir cmake -DCMAKE_BUILD_TYPE=Release .. -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_CXX_STANDARD=17 
-    DESTDIR=$pkgdir make -j$(grep -c proc /proc/cpuinfo)
+    cd "$pkgname-$pkgver/build"
+    cmake -DCMAKE_BUILD_TYPE=Release .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_CXX_STANDARD=17
+    make -j$(grep -c proc /proc/cpuinfo)
 }

 package() {
-   cd "$pkgname-$pkgver/build"
-    DESTDIR=$pkgdir make install
+    cd "$pkgname-$pkgver/build"
+    make DESTDIR="$pkgdir" install
 }
 md5sums=('2577EE351719CA4397C5F91FACE35CF6')
-- 
2.20.0

sherilyn commented on 2018-12-03 11:16

3.4.0 is not STABLE at the moment.

tbrock commented on 2016-01-29 17:11

Wow, what a great driver. Thanks MongoDB!