aboutsummaryrefslogtreecommitdiffstats
path: root/community/kgamma5/APKBUILD
blob: 8cd1b2ce5cfc43a5cc3864d5f5af2d72abc3cb24 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kgamma5
pkgver=5.18.1
pkgrel=0
pkgdesc="Adjust your monitor's gamma settings"
arch="all !armhf" # armhf blocked by extra-cmake-modules
url="https://www.kde.org/workspaces/plasmadesktop/"
license="GPL-2.0-or-later"
makedepends="qt5-qtbase-dev kconfig-dev kconfigwidgets-dev kdoctools-dev ki18n-dev extra-cmake-modules"
source="https://download.kde.org/stable/plasma/$pkgver/kgamma5-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"

build() {
	cmake -B "$builddir"/build \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	make -C build
}

check() {
	cd "$builddir"/build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="5cd9f9da8c614142ffa669232c447c2cab023a75cbb1cd35d875893349499c83cd8e94afd83b14eab1b316b8a34a1c587824bcb65668d3e9fc7f8da9647f1b45  kgamma5-5.18.1.tar.xz"