# 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=plasma-thunderbolt pkgver=5.27.7 pkgrel=1 # armhf blocked by qt5-qtdeclarative arch="all !armhf" url="https://kde.org/plasma-desktop/" pkgdesc="Plasma integration for controlling Thunderbolt devices" license="GPL-2.0-only OR GPL-3.0-only" depends="bolt" makedepends=" extra-cmake-modules kcmutils-dev kcoreaddons-dev kdbusaddons-dev kdeclarative-dev ki18n-dev knotifications-dev qt5-qtbase-dev qt5-qtdeclarative-dev samurai " checkdepends="xvfb-run" case "$pkgver" in *.90*) _rel=unstable;; *) _rel=stable;; esac _repo_url="https://invent.kde.org/plasma/plasma-thunderbolt.git" source="https://download.kde.org/$_rel/plasma/$pkgver/plasma-thunderbolt-$pkgver.tar.xz" subpackages="$pkgname-lang" options="!check" # Requires running dbus server _commit="" snapshot() { clean makedepends="git xz rsync tar" deps mkdir -p "$srcdir" && cd "$srcdir" git clone --filter=tree:0 https://invent.kde.org/plasma/plasma-thunderbolt.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() { xvfb-run ctest --test-dir build --output-on-failure } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 1985896d4a4d09c0fa018421fa5bcd22d69c4d3ce240919b4c660f8dbc57b2a958c5b37919aba9a306b6e2ffff5dc84f2ac3247af76bb85dbe2a8b254cbd23b5 plasma-thunderbolt-5.27.7.tar.xz "