Date: Tuesday, February 14, 2023 @ 00:15:41
  Author: artafinde
Revision: 1400411

mtxclient: add to repos

Added:
  mtxclient/
  mtxclient/repos/
  mtxclient/trunk/
  mtxclient/trunk/PKGBUILD

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

Added: mtxclient/trunk/PKGBUILD
===================================================================
--- mtxclient/trunk/PKGBUILD                            (rev 0)
+++ mtxclient/trunk/PKGBUILD    2023-02-14 00:15:41 UTC (rev 1400411)
@@ -0,0 +1,56 @@
+# Maintainer: Leonidas Spyropoulos <artafi...@archlinux.org>
+# Contributor: David Runge <dv...@archlinux.org>
+
+pkgname=mtxclient
+pkgver=0.9.1
+pkgrel=2
+pkgdesc="Client API library for the Matrix protocol"
+arch=('x86_64')
+url="https://github.com/Nheko-Reborn/mtxclient";
+license=('MIT')
+depends=(gcc-libs glibc)
+makedepends=(cmake coeurl fmt libolm meson nlohmann-json openssl re2 spdlog 
git)
+provides=(libmatrix_client.so)
+source=(git+https://github.com/Nheko-Reborn/mtxclient.git#tag=v${pkgver})
+sha256sums=('SKIP')
+# validpgpkeys=('D58B462425A6A37125C6FEDB9206AE1B231E05BB') # Nicolas Werner 
@deepbluev7 https://nheko.im/deepbluev7.gpg
+#                                                           # Nicolas Werner 
<nicolas.wer...@hotmail.de>
+#                                                           # Nicolas Werner 
<nico...@nekodev.net>
+#                                                           # Nicolas Werner 
<nicolas.wer...@gmx.net>
+
+build() {
+  cmake \
+    -Bbuild \
+    -GNinja \
+    -S "$pkgname" \
+    -DCMAKE_BUILD_TYPE='None' \
+    -DCMAKE_INSTALL_PREFIX='/usr' \
+    -DCMAKE_INSTALL_LIBDIR='lib' \
+    -DBUILD_LIB_EXAMPLES=OFF \
+    -DBUILD_SHARED_LIBS=ON \
+    -DBUILD_LIB_TESTS=OFF \
+    -DBUILD_LIB_EXAMPLES=OFF \
+    -Wno-dev
+  cmake --build build --verbose
+}
+
+# check() {
+#   # Tests require a synapse docker instance running and a commit so disable 
for now
+#   # git cherry-pick --no-commit 6daf21627c36704e28245e52ad525508ec5be51f
+#   ninja test -C build
+# }
+
+package() {
+  depends+=(
+    coeurl libcoeurl.so
+    fmt libfmt.so
+    libolm libolm.so
+    openssl libcrypto.so
+    re2 libre2.so
+    spdlog libspdlog.so
+  )
+  DESTDIR="${pkgdir}" cmake --install build
+  install -Dm644 $pkgname/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ft=sh sw=2 sts=2 et:

Reply via email to