# 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=libkscreen pkgver=5.27.7 pkgrel=1 pkgdesc="KDE screen management software" arch="all !armhf" # armhf blocked by extra-cmake-modules url="https://kde.org/plasma-desktop/" license="LGPL-2.1-or-later AND GPL-2.0-or-later AND (GPL-2.0-only OR GPL-3.0-only)" depends_dev=" kconfig-dev kwayland-dev qt5-qtbase-dev qt5-qtx11extras-dev " makedepends="$depends_dev doxygen extra-cmake-modules graphviz plasma-wayland-protocols qt5-qttools-dev samurai " case "$pkgver" in *.90*) _rel=unstable;; *) _rel=stable;; esac _repo_url="https://invent.kde.org/plasma/libkscreen.git" source="https://download.kde.org/$_rel/plasma/$pkgver/libkscreen-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc" options="!check" # Fails due to requiring dbus-x11 and it running _commit="" snapshot() { clean makedepends="git xz rsync tar" deps mkdir -p "$srcdir" && cd "$srcdir" git clone --filter=tree:0 https://invent.kde.org/plasma/libkscreen.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 \ -DBUILD_QCH=ON cmake --build build } check() { ctest --test-dir python --output-on-failure } package() { DESTDIR="$pkgdir" cmake --install build rm -rf "$pkgdir"/usr/lib/systemd } sha512sums=" 5d37d343f17c9aba4eb68aa2b711855d2a846b46433c91df32e1347b140bf4bae835eb37556c0d705d25cef13969f5b930825c8e654799abf4e2efc5279c7800 libkscreen-5.27.7.tar.xz "