aboutsummaryrefslogtreecommitdiffstats
path: root/community/spectral/APKBUILD
blob: 1725903a6c4d66c135ad4e0d70ee65a640ac3486 (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
44
45
46
47
48
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=spectral
pkgver=0.0.0.817
_pkgver=${pkgver##*.}
pkgrel=1
_commit_libquotient="16d6700950f5f0ebd71481efd5e1a24f04e3c651"
_commit_sortfilterproxymodel="36befddf5d57faad990e72c88c5844794f274145"
# Blocked on armhf by qt5-qtdeclarative
# Broken on s390x
arch="all !armhf !s390x"
url="https://gitlab.com/spectral-im/spectral"
pkgdesc="A glossy cross-platform Matrix client"
license="GPL-3.0-or-later"
makedepends="cmake qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtmultimedia-dev qt5-qtsvg-dev qt5-qtquickcontrols2-dev
 qt5-qtkeychain-dev libqtolm-dev olm-dev libsecret-dev cmark-dev"
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/spectral-im/spectral/-/archive/$_pkgver/spectral-$_pkgver.tar.gz
	libQuotient-$_commit_libquotient.tar.gz::https://github.com/quotient-im/libQuotient/archive/$_commit_libquotient.tar.gz
	SortFilterProxyModel-$_commit_sortfilterproxymodel.tar.gz::https://github.com/oKcerG/SortFilterProxyModel/archive/$_commit_sortfilterproxymodel.tar.gz"
options="!check" # No tests
builddir="$srcdir/$pkgname-$_pkgver"

prepare() {
	default_prepare

	rmdir \
		include/libQuotient \
		include/SortFilterProxyModel
	mv "$srcdir"/libQuotient-$_commit_libquotient include/libQuotient
	mv "$srcdir"/SortFilterProxyModel-$_commit_sortfilterproxymodel include/SortFilterProxyModel
}

build() {
	# TODO: set USE_INTREE_LIBQMC to true once libQuotient 0.6.0 is out
	cmake \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DUSE_INTREE_LIBQMC=true
	make
}

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

sha512sums="82fcb0b035cc6f98358c44d784045b034ff4f2339ddf77e1734da807657eea3d0abe0069e542343f3f4781310ba6028886407083924f399df54f6afd0e9b1466  spectral-0.0.0.817.tar.gz
d4510dd46441865311e046b4986ce86e43a138a27f92f1671ff4758d54c82d613fcfec6a2813190b6c1336d2df75b60dccbf92553e3b76374b3fad9b25518dba  libQuotient-16d6700950f5f0ebd71481efd5e1a24f04e3c651.tar.gz
bfb7af36abd5ded014549042e760c1ec6779f46dd6c30e672ada21decc7a1b1a631ada1cc2c57d62d0daca4cccff9640077345b3661ef73021d5e2ee8058ae9b  SortFilterProxyModel-36befddf5d57faad990e72c88c5844794f274145.tar.gz"