aboutsummaryrefslogtreecommitdiffstats
path: root/community/mtxclient/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/mtxclient/APKBUILD')
-rw-r--r--community/mtxclient/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/mtxclient/APKBUILD b/community/mtxclient/APKBUILD
new file mode 100644
index 0000000000..4b0524c166
--- /dev/null
+++ b/community/mtxclient/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Sheila Aman <sheila@vulpine.house>
+pkgname=mtxclient
+pkgver=0.5.1
+pkgrel=0
+pkgdesc="Client API library for Matrix, built on top of Boost.Asio"
+url="https://github.com/nheko-reborn/mtxclient"
+arch="all"
+license="MIT"
+depends_dev="nlohmann-json openssl-dev zlib-dev olm-dev libsodium-dev boost-dev"
+makedepends="$depends_dev cmake gtest-dev"
+subpackages="$pkgname-dev"
+source="https://github.com/nheko-reborn/mtxclient/archive/v$pkgver/mtxclient-v$pkgver.tar.gz"
+options="!check" # Requires running Synapse instance
+
+build() {
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_LIB_EXAMPLES=OFF
+ cmake --build build
+}
+
+check() {
+ cd build
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build
+}
+
+sha512sums="f0a5e823bd7f3cccdf5f919c04c36a1a5ab4d2627a6f8f3fac78e4b300eda3b9e1f5060fb31e6e47267bbafc3a03f6c2a2d16c2323e63ce4889f551860e7703f mtxclient-v0.5.1.tar.gz"