aboutsummaryrefslogtreecommitdiffstats
path: root/community/libquotient/APKBUILD
blob: e735b0470d150a811cc49e2d16449816e24737c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libquotient
pkgver=0.6.6
pkgrel=0
pkgdesc="Qt5 library for cross-platform clients for Matrix"
url="https://github.com/quotient-im/libQuotient"
arch="all !armhf !mips64" # blocked by qt5-qtmultimedia, mips blocked by qtolm
license="LGPL-2.1-or-later"
depends_dev="
	qt5-qtbase-dev
	qt5-qtmultimedia-dev
	"
makedepends="$depends_dev
	cmake
	"
subpackages="$pkgname-dev"
source="https://github.com/quotient-im/libQuotient/archive/$pkgver/libQuotient-$pkgver.tar.gz"
options="!check" # Requires a running homeserver
builddir="$srcdir/libQuotient-$pkgver"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DQuotient_ENABLE_E2EE=False # Broken
	cmake --build build
	cmake tests -B build-test
	cmake --build build-test
}

check() {
	cd build-test
	./quotest # <username> <password> quotest-travis '#quotest:matrix.org' "Alpine Linux CI"
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="7560194bee5b6478ac8efd15d6cfef9cc003073744b4860e3177e51e49135cf2ad96c69e8cd21e64c1f9902ea4d27c26d84d200fc862c5c0daeb0cc4bb4ea65d  libQuotient-0.6.6.tar.gz"