summaryrefslogblamecommitdiff
path: root/user/kcolorchooser/APKBUILD
blob: 098ed443b853ba68aaf5d7ba77148714996034a5 (plain) (tree)
1
2
3
4


                                                  
              





































                                                                                             
                                                                                                                                                                           
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kcolorchooser
pkgver=18.04.1
pkgrel=0
pkgdesc="Simple application to choose a colour from the screen"
url="https://www.kde.org/applications/graphics/kcolorchooser/"
arch="all"
license="MIT"
depends=""
makedepends="cmake extra-cmake-modules qt5-qtbase-dev ki18n-dev kxmlgui-dev"
install=""
subpackages="$pkgname-lang"
source="http://download.kde.org/stable/applications/$pkgver/src/kcolorchooser-$pkgver.tar.xz"
builddir="$srcdir/kcolorchooser-$pkgver"

build() {
	cd "$builddir"
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS}
	make
}

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

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="e23fb2b4120fad07db0d3aed14e4dd2231b9766d7adb4a02ee1b111253eec9aee2079e33a1e02301a1763d58395951fe02e0a033f240fa7515de377fc672e381  kcolorchooser-18.04.1.tar.xz"