Date: Tuesday, November 1, 2022 @ 16:14:56
  Author: felixonmars
Revision: 1340154

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 1340153, mongo-c-driver/trunk/PKGBUILD)

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

Copied: mongo-c-driver/repos/community-staging-x86_64/PKGBUILD (from rev 
1340153, mongo-c-driver/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-11-01 16:14:56 UTC (rev 1340154)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=mongo-c-driver
+pkgver=1.23.1
+pkgrel=2
+pkgdesc='A client library written in C for MongoDB'
+arch=('x86_64')
+url='https://www.mongodb.org/display/DOCS/C+Language+Center'
+license=('Apache')
+depends=('libsasl' 'icu' 'snappy' 'zlib' 'zstd')
+makedepends=('cmake')
+provides=('libbson' 'libmongoc')
+conflicts=('libbson' 'libmongoc')
+replaces=('libbson' 'libmongoc')
+source=("https://github.com/mongodb/mongo-c-driver/releases/download/$pkgver/$pkgname-$pkgver.tar.gz";)
+sha512sums=('ede046de417f288ae882f63bb71a423ae33626b9e6dd75ce8ef259b5cb047a335068c0330f26cb101e6e763826ee4665cfbbe90c2fab605d75f89c37d5163b72')
+
+prepare() {
+  mkdir -p build
+}
+
+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 || echo "Tests failed"
+}
+
+package() {
+  cd build
+  make DESTDIR="$pkgdir/" install
+}

Reply via email to