aboutsummaryrefslogtreecommitdiffstats
path: root/community/gwenview/APKBUILD
blob: 194533637f0cfb19377967b0cedbbf333c9f487a (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=gwenview
pkgver=20.12.2
pkgrel=0
# armhf blocked by extra-cmake-modules
# s390x blocked by kxmlgui
arch="all !armhf !s390x !mips64"
url="https://kde.org/applications/graphics/org.kde.gwenview"
pkgdesc="Fast and easy to use image viewer by KDE"
license="GPL-2.0-only"
depends="kimageformats"
makedepends="
	baloo-dev
	extra-cmake-modules
	kactivities-dev
	kdoctools-dev
	ki18n-dev
	kiconthemes-dev
	kio-dev
	kitemmodels-dev
	knotifications-dev
	kparts-dev
	kwindowsystem-dev
	lcms2-dev
	libjpeg-turbo-dev
	libkdcraw-dev
	libkipi-dev
	libpng-dev
	purpose-dev
	qt5-qtbase-dev
	qt5-qtsvg-dev
	qt5-qtx11extras-dev
	"
checkdepends="xvfb-run kinit"
source="https://download.kde.org/stable/release-service/$pkgver/src/gwenview-$pkgver.tar.xz
	fix-imagescalertest.patch
	"
case "$CARCH" in
	mips64) options="!check" # test failures
esac
subpackages="$pkgname-doc $pkgname-lang"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

check() {
	cd build
	# urlutilstest and placetreemodeltest are broken
	# recursivedirmodeltest and contextmanagertest requires running DBus
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "(urlutils|recursivedirmodel|contextmanager|placetreemodel)test"
}

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

sha512sums="a6608af2b458f8ebe23ee99241cab634eb93475e3c765d7852934593f42c978d8312f2537f06446fc5dc78e58d4878ba8759ceb581ec46a317b13169f20853c2  gwenview-20.12.2.tar.xz
d382948b56bf66045f4ef2295a13492cfe65f90475b0e36091a10d8c2a78888891cba2278de8af229a6b7b042652b9c80f781d73c969fff0f5a62b4296c58bb5  fix-imagescalertest.patch"