aboutsummaryrefslogblamecommitdiffstats
path: root/testing/mtxclient/APKBUILD
blob: b6bf1c8f993342d25eb8f93efea440af49d02741 (plain) (tree)
1
2
3
4
5
6
7
8
9



                                                  
        



                                                                   
                                                                                









                                                                                                  
                                       











                                                                                                                                                                     
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=mtxclient
pkgver=0.2.1
pkgrel=3
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="$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=None
	make
}

check() {
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" make install
}

sha512sums="3362e9ae44ebeb22ac036ba2ac63682eeb97248754bf4b4029ce381d6d99501a94cd82a7b2e23aefe902b4c43389ee48e5e465679ce7fbebbf4f4d06cbc19659  mtxclient-0.2.1.tar.gz"