From a7eb3eecfe90e130fa0d630915ac664bdd49362c Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 15 Jan 2019 17:38:03 +0000 Subject: user/kgamma5: new package --- user/kgamma5/APKBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 user/kgamma5/APKBUILD (limited to 'user/kgamma5/APKBUILD') diff --git a/user/kgamma5/APKBUILD b/user/kgamma5/APKBUILD new file mode 100644 index 000000000..83ed6b482 --- /dev/null +++ b/user/kgamma5/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: A. Wilcox +# Maintainer: A. Wilcox +pkgname=kgamma5 +pkgver=5.12.7 +pkgrel=0 +pkgdesc="Control monitor gamma from KDE 5" +url="https://www.KDE.org/" +arch="all" +license="GPL-2.0+" +depends="" +makedepends="cmake extra-cmake-modules qt5-qtbase-dev kconfig-dev + kconfigwidgets-dev kdoctools-dev ki18n-dev" +subpackages="$pkgname-doc $pkgname-lang" +source="https://download.kde.org/stable/plasma/$pkgver/kgamma5-$pkgver.tar.xz" + +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="074dffc56a333bf88bb1942b3021c690822a234e26d41ff1b2d3e81f7f86f6ac272cb80f6f2552cbc5098880de520aebb8549f2a004608b824ea0c48f4e01cc6 kgamma5-5.12.7.tar.xz" -- cgit v1.2.3-70-g09d2