Date: Wednesday, June 20, 2018 @ 09:45:59 Author: felixonmars Revision: 344198
archrelease: copy trunk to community-testing-x86_64 Added: mongo-c-driver/repos/community-testing-x86_64/ mongo-c-driver/repos/community-testing-x86_64/PKGBUILD (from rev 344197, mongo-c-driver/trunk/PKGBUILD) ----------+ PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) Copied: mongo-c-driver/repos/community-testing-x86_64/PKGBUILD (from rev 344197, mongo-c-driver/trunk/PKGBUILD) =================================================================== --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2018-06-20 09:45:59 UTC (rev 344198) @@ -0,0 +1,45 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=mongo-c-driver +pkgver=1.10.3 +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=('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=('47af1baad1ad74bbbdf2fd22a437034d317a2f3ec02fee485e983ae6829b3f01af2649a09577f08144a88385fa940dfa211ea02bfa3c0e25b59dbe2090269603') + +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 +}