aboutsummaryrefslogtreecommitdiffstats
path: root/community/kcolorchooser/APKBUILD
blob: a9a2a226c2b1e4f234690897ea689625b8039648 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kcolorchooser
pkgver=20.12.2
pkgrel=0
arch="all !armhf !mips !mips64 !s390x" # armhf blocked by extra-cmake-modules, everything else by rust
url="https://kde.org/applications/graphics/org.kde.kcolorchooser"
pkgdesc="A color palette tool, used to mix colors and create custom color palettes"
license="MIT"
makedepends="extra-cmake-modules qt5-qtbase-dev ki18n-dev kxmlgui-dev"
source="https://download.kde.org/stable/release-service/$pkgver/src/kcolorchooser-$pkgver.tar.xz"
subpackages="$pkgname-lang"
options="!check" # No tests

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="7bfd8d9b4683f1e4b3e1f9f2a8cd794d8f258b44f923ba018a9f0bc4a8c32ba55e9e3f4bad1b60a5256891ad3544a66e1b5dbb02821ed933850abd63931fd75b  kcolorchooser-20.12.2.tar.xz"