diff options
-rw-r--r-- | testing/mtxclient/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/mtxclient/APKBUILD b/testing/mtxclient/APKBUILD new file mode 100644 index 0000000000..8b12b9d786 --- /dev/null +++ b/testing/mtxclient/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Bart Ribbers <bribbers@disroot.org> +# Maintainer: Bart Ribbers <bribbers@disroot.org> +pkgname=mtxclient +pkgver=0.2.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-dev openssl-dev zlib-dev olm-dev libsodium-dev boost-dev" +makedepends="$depends_dev cmake gtest-dev" +subpackages="$pkgname-dev" +source="$pkgname-$pkgver.tar.gz::https://github.com/nheko-reborn/$pkgname/archive/v$pkgver.tar.gz" +options="!check" # Requires running Synapse instance + +build() { + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_LIB_EXAMPLES=OFF \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo + make +} + +check() { + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + DESTDIR="$pkgdir" make install +} + +sha512sums="3362e9ae44ebeb22ac036ba2ac63682eeb97248754bf4b4029ce381d6d99501a94cd82a7b2e23aefe902b4c43389ee48e5e465679ce7fbebbf4f4d06cbc19659 mtxclient-0.2.1.tar.gz" |