# Contributor: Bart Ribbers # Maintainer: team/kde # The group tag is just to easily find this APKBUILD by some scripts for automation # group=kde-plasma pkgname=kgamma5 pkgver=5.27.7 pkgrel=1 pkgdesc="Adjust your monitor's gamma settings" # armhf blocked by extra-cmake-modules arch="all !armhf" url="https://kde.org/plasma-desktop/" license="GPL-2.0-or-later" makedepends=" extra-cmake-modules kconfig-dev kconfigwidgets-dev kdoctools-dev ki18n-dev qt5-qtbase-dev samurai " case "$pkgver" in *.90*) _rel=unstable;; *) _rel=stable;; esac _repo_url="https://invent.kde.org/plasma/kgamma5.git" source="https://download.kde.org/$_rel/plasma/$pkgver/kgamma5-$pkgver.tar.xz" subpackages="$pkgname-doc $pkgname-lang" _commit="" snapshot() { clean makedepends="git xz rsync tar" deps mkdir -p "$srcdir" && cd "$srcdir" git clone --filter=tree:0 https://invent.kde.org/plasma/kgamma5.git . git archive --format tar --prefix=$pkgname/ $_commit > ../$pkgname-$_commit.tar xz -vv -T0 -9 -e ../$pkgname-$_commit.tar } build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } check() { ctest --test-dir build --output-on-failure } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" f0da577b6c302891cc91ee7faec947f208a3ebc412b2450d234cecac9aa0145421a22760de17032c569f59e3f94bf4b3e7f5b1f4ccafe129dbaed02b01a67c33 kgamma5-5.27.7.tar.xz "