aboutsummaryrefslogtreecommitdiffstats
path: root/community/mirage/APKBUILD
blob: 66b6fd4d72e575022dc94d174e28bbbf08e40074 (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
# Contributor: Newbyte <newbie13xd@gmail.com>
# Maintainer: Newbyte <newbie13xd@gmail.com>
pkgname=mirage
pkgver=0.7.1
pkgrel=0
pkgdesc="Qt/QML Matrix client"
url="https://github.com/mirukana/mirage"
arch="all !armhf !mips64" # armhf: blocked by py3-pyotherside, qt5-qtquickcontrols2
license="LGPL-3.0-or-later"
depends="
	py3-aiofiles
	py3-appdirs
	py3-blist
	py3-cairosvg
	py3-filetype
	py3-html-sanitizer
	py3-matrix-nio
	py3-mistune
	py3-pillow
	py3-pymediainfo
	py3-pyotherside
	"
makedepends="
	libjpeg-turbo-dev
	libmediainfo-dev
	libwebp-dev
	libx11-dev
	libxscrnsaver-dev
	olm-dev
	openjpeg-dev
	py3-pyotherside
	py3-setuptools
	python3-dev
	qtchooser
	qt5-qtbase-dev
	qt5-qtquickcontrols2-dev
	qt5-qtsvg-dev
	qt5-qtimageformats
	tiff-dev
	zlib-dev
	"
checkdepends="
	py3-flake8
	py3-mypy
	"
_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
	0001-Update-mypy-dev-requirement-to-0.812.patch
	"

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

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

check() {
	make test
}

package() {
	make INSTALL_ROOT=$pkgdir install
}

sha512sums="af4e6adb33e4fad200947d91592b76115be426c8d5a780bed0cffbbea72189bd513815c2c2aa74ae6e06c6b35e17a2fc47b4350cc57fe27c35f972753b5bb772  mirage-v0.7.1.tar.gz
ecd8c9afa9e22c6a0093435ce89b5d5b1882207359d02a65f6e62952fa4b57fc5b3e1aaa07527553a7e86c350173409b21d41b3da5235a7fb5f96b61944be839  hsluv-c.tar.gz
3d3f22afe3a3a4510dd7f924795c37552ecc8b1e36fb25b1c289a0164d0ca3dcf243a0d479b3583826f75ae1974d84e0a02d02b4170712c7ba1db269a200e26b  0001-Update-mypy-dev-requirement-to-0.812.patch"