aboutsummaryrefslogtreecommitdiffstats
path: root/community/mirage/APKBUILD
blob: eb425f1c9d0076758fcff1b1bafd3281deffc870 (plain) (blame)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Contributor: Newbyte <newbyte@disroot.org>
# Maintainer: Newbyte <newbyte@disroot.org>
pkgname=mirage
pkgver=0.7.2
pkgrel=2
pkgdesc="Qt/QML Matrix client"
url="https://github.com/mirukana/mirage"
# armhf: blocked by py3-pyotherside, qt5-qtquickcontrols2
# mips64: ???
# s390x: blocked by py3-watchgod
arch="all !armhf !mips64 !s390x"
license="LGPL-3.0-or-later"
options="!check" # requires types-aiohttp
depends="
	py3-aiofiles
	py3-appdirs
	py3-blist
	py3-cairosvg
	py3-filetype
	py3-hsluv
	py3-html-sanitizer
	py3-matrix-nio
	py3-mistune
	py3-pillow
	py3-plyer
	py3-pymediainfo
	py3-pyotherside
	py3-redbaron
	py3-simpleaudio
	py3-sortedcontainers
	py3-watchgod
	"
makedepends="
	libjpeg-turbo-dev
	libmediainfo-dev
	libwebp-dev
	libx11-dev
	libxscrnsaver-dev
	olm-dev
	openjpeg-dev
	py3-setuptools
	python3-dev
	qtchooser
	qt5-qtbase-dev
	qt5-qtquickcontrols2-dev
	qt5-qtsvg-dev
	qt5-qtimageformats
	tiff-dev
	zlib-dev
	"
_commit_hsluv_c=9e9be32d6010cad484a7b12b1a3d19c6cf4c1353
source="
	mirage-v$pkgver.tar.gz::https://github.com/mirukana/mirage/archive/v$pkgver.tar.gz
	hsluv-c.tar.gz::https://github.com/hsluv/hsluv-c/archive/$_commit_hsluv_c.tar.gz
	python-3.10-fix.patch::https://github.com/vSLG/mirage/commit/4cffbaa68da1feb9254dcd064de66ae93045a785.patch
	"

prepare() {
	default_prepare
	mv "$srcdir/hsluv-c-$_commit_hsluv_c/"* "$builddir/submodules/hsluv-c"
}

build() {
	qmake CONFIG+=qtquickcompiler PREFIX=/usr mirage.pro
	make
}

package() {
	make INSTALL_ROOT=$pkgdir install
}

sha512sums="
793e730aae73c95f1aee4df85ffc9c0bb785da8ec1f7845d98d785ef2649d1f837dba8c82c4ce87462e26f736de5fcab76ed8b351aa09e38cbab637a45a10108  mirage-v0.7.2.tar.gz
ecd8c9afa9e22c6a0093435ce89b5d5b1882207359d02a65f6e62952fa4b57fc5b3e1aaa07527553a7e86c350173409b21d41b3da5235a7fb5f96b61944be839  hsluv-c.tar.gz
503d0993bb9b8bcc2c9a5b83614e9b5b9825458f77a6ab29a2c5065666c466b9850fc05a7667aedc81be1cc9193958b2efb0feaa9276e77cc057b037a1882435  python-3.10-fix.patch
"