aboutsummaryrefslogtreecommitdiffstats
path: root/community/kcolorchooser/APKBUILD
blob: 99b0046242bef5c30942d4c028c75ae83b4ffd77 (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.1
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="a054aecbc2c4c0692a2099f75e996771f631a79a51420415f99424a80bbca0a05b02d2754a1a3191081937aa5254b3e189bc3417196d666f92c14548bf67ec67  kcolorchooser-20.12.1.tar.xz"