diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-01-15 17:38:03 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-01-15 17:38:03 +0000 |
commit | a7eb3eecfe90e130fa0d630915ac664bdd49362c (patch) | |
tree | d1c98ee6cd254cbc375faf24cd8d367dd35daff8 /user/kgamma5/APKBUILD | |
parent | de896e8ec256a0857b7b4c3b6eee57ac167b15bd (diff) | |
download | packages-a7eb3eecfe90e130fa0d630915ac664bdd49362c.tar.gz packages-a7eb3eecfe90e130fa0d630915ac664bdd49362c.tar.bz2 packages-a7eb3eecfe90e130fa0d630915ac664bdd49362c.tar.xz packages-a7eb3eecfe90e130fa0d630915ac664bdd49362c.zip |
user/kgamma5: new package
Diffstat (limited to 'user/kgamma5/APKBUILD')
-rw-r--r-- | user/kgamma5/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
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 <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +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" |