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

Felix Yan felixonmars at archlinux.org
Thu Nov 16 23:37:28 UTC 2017


    Date: Thursday, November 16, 2017 @ 23:37:27
  Author: felixonmars
Revision: 267048

archrelease: copy trunk to community-testing-x86_64

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

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

Copied: libmongoc/repos/community-testing-x86_64/PKGBUILD (from rev 267047, libmongoc/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2017-11-16 23:37:27 UTC (rev 267048)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=libmongoc
+pkgver=1.8.2
+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=('9976147e13ba788d711c1005329dff9c442f4fe2f9497b8f43993f04deb08e84b4c86948d8618864252a641e44c5c129bbba7aab5fa65cfbacad48eb7f1c41c9')
+
+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