aboutsummaryrefslogtreecommitdiffstats
path: root/community/kmag/APKBUILD
blob: dd73c504292f6e034fc1182d2cf9d7fef053d715 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kmag
pkgver=20.12.1
pkgrel=0
# armhf blocked by extra-cmake-modules
# mips, mips64 and s390x blocked by kio and kxmlgui
arch="all !armhf !mips !mips64 !s390x"
url="https://kde.org/applications/utilities/org.kde.kmag"
pkgdesc="A screen magnifier"
license="GPL-2.0-or-later AND GFDL-1.2-only"
makedepends="
	extra-cmake-modules
	kdoctools-dev
	ki18n-dev
	kio-dev
	kxmlgui-dev
	qt5-qtbase-dev
	"
source="https://download.kde.org/stable/release-service/$pkgver/src/kmag-$pkgver.tar.xz"
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
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="e1f8b1b8c7992bb85c4ce718d6d9573c1261db4a40c94ba93cba6e9334fd9bf7473d533b19f1f7378c3d001fee2afcf266ac4b2272d795bfcac5447d4f8cb65d  kmag-20.12.1.tar.xz"