[arch-commits] Commit in mongo-c-driver/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Aug 6 19:53:00 UTC 2018
Date: Monday, August 6, 2018 @ 19:53:00
Author: felixonmars
Revision: 369894
archrelease: copy trunk to community-staging-x86_64
Added:
mongo-c-driver/repos/community-staging-x86_64/
mongo-c-driver/repos/community-staging-x86_64/PKGBUILD
(from rev 369893, mongo-c-driver/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: mongo-c-driver/repos/community-staging-x86_64/PKGBUILD (from rev 369893, mongo-c-driver/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-08-06 19:53:00 UTC (rev 369894)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=mongo-c-driver
+pkgver=1.12.0
+pkgrel=2
+pkgdesc='A client library written in C for MongoDB'
+arch=('x86_64')
+url='http://www.mongodb.org/display/DOCS/C+Language+Center'
+license=('Apache')
+depends=('libsasl' 'snappy' 'zlib')
+makedepends=('cmake')
+checkdepends=('pifpaf' 'mongodb')
+provides=('libbson' 'libmongoc')
+conflicts=('libbson' 'libmongoc')
+replaces=('libbson' 'libmongoc')
+source=("mongo-c-driver-$pkgver.tar.gz::https://github.com/mongodb/mongo-c-driver/archive/$pkgver.tar.gz")
+sha512sums=('e4688da8a94fc499893b6001fc444b97fc05c89672fd9700bf30c6af7f1bbb02b1a658aa74470e0e5d5e72bc28a5753aa7dcda14dba7e75fbce0b4bb94b7373f')
+
+prepare() {
+ mkdir -p build
+ cd mongo-c-driver-$pkgver
+}
+
+build() {
+ cd build
+ cmake ../mongo-c-driver-$pkgver \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DENABLE_STATIC=OFF -DENABLE_TESTS=OFF
+ # Test profiles are not found even with ENABLE_TESTS=ON
+ make
+}
+
+check() {
+ cd build
+ # No test profile found
+ # pifpaf run mongodb --port 27017 make test || warning "Tests failed"
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir/" install
+}
More information about the arch-commits
mailing list