[arch-commits] Commit in libmongoc/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu Dec 21 10:02:16 UTC 2017


    Date: Thursday, December 21, 2017 @ 10:02:15
  Author: felixonmars
Revision: 275156

archrelease: copy trunk to community-testing-x86_64

Added:
  libmongoc/repos/community-testing-x86_64/
  libmongoc/repos/community-testing-x86_64/PKGBUILD
    (from rev 275155, libmongoc/trunk/PKGBUILD)

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Copied: libmongoc/repos/community-testing-x86_64/PKGBUILD (from rev 275155, libmongoc/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2017-12-21 10:02:15 UTC (rev 275156)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=libmongoc
+pkgver=1.9.0
+pkgrel=1
+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=('libbson' 'libsasl' 'snappy' 'zlib')
+checkdepends=('python-pifpaf' 'mongodb')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mongodb/mongo-c-driver/archive/$pkgver.tar.gz")
+sha512sums=('e7785f336c38bbf7dd519351bba2facab025b4d2bcd1eef82e98606a21510af7f799edaf4b4f074bd4c5a17ad63176c276f8c57e499b8d9afd098bce274da4ae')
+
+prepare() {
+  cd mongo-c-driver-$pkgver
+  # Remove check for bundled libbson
+  sed -i 's|src/libbson/autogen.sh|/usr/bin/true|' autogen.sh
+}
+
+build() {
+  cd mongo-c-driver-$pkgver
+  PTHREAD_LIBS=-pthread ./autogen.sh --prefix=/usr
+  make
+}
+
+check() {
+  cd mongo-c-driver-$pkgver
+  pifpaf run mongodb --port 27017 make test || warning "Tests failed"
+}
+
+package() {
+  cd mongo-c-driver-$pkgver
+  make DESTDIR="$pkgdir/" install
+}



More information about the arch-commits mailing list