| 1 | # The group tag is just to easily find this APKBUILD by some scripts for automation |
| 2 | # group=kde-plasma |
| 3 | maintainer="team/kde <[email protected]>" |
| 4 | pkgname=plasma-thunderbolt |
| 5 | pkgver=6.8.0 |
| 6 | pkgrel=0 |
| 7 | # armhf blocked by qt6-qtdeclarative |
| 8 | arch="all !armhf" |
| 9 | url="https://kde.org/plasma-desktop/" |
| 10 | pkgdesc="Plasma integration for controlling Thunderbolt devices" |
| 11 | license="GPL-2.0-only OR GPL-3.0-only" |
| 12 | depends="bolt" |
| 13 | makedepends=" |
| 14 | extra-cmake-modules |
| 15 | kcmutils-dev |
| 16 | kcoreaddons-dev |
| 17 | kdbusaddons-dev |
| 18 | kdeclarative-dev |
| 19 | ki18n-dev |
| 20 | knotifications-dev |
| 21 | qt6-qtbase-dev |
| 22 | qt6-qtdeclarative-dev |
| 23 | samurai |
| 24 | " |
| 25 | checkdepends=" |
| 26 | dbus |
| 27 | xwayland-run |
| 28 | " |
| 29 | |
| 30 | case "$pkgver" in |
| 31 | *.*.9*) _rel=unstable;; |
| 32 | *) _rel=stable;; |
| 33 | esac |
| 34 | |
| 35 | subpackages="$pkgname-lang" |
| 36 | _repo_url="https://invent.kde.org/plasma/plasma-thunderbolt.git" |
| 37 | source="https://download.kde.org/$_rel/plasma/$pkgver/plasma-thunderbolt-$pkgver.tar.xz" |
| 38 | |
| 39 | build() { |
| 40 | cmake -B build -G Ninja \ |
| 41 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \ |
| 42 | -DCMAKE_INSTALL_PREFIX=/usr \ |
| 43 | -DCMAKE_INSTALL_LIBDIR=lib |
| 44 | cmake --build build |
| 45 | } |
| 46 | |
| 47 | check() { |
| 48 | dbus-run-session wlheadless-run -- ctest --test-dir build -E "(libkbolt-device|kbolt-kded-kded)test" |
| 49 | } |
| 50 | |
| 51 | package() { |
| 52 | DESTDIR="$pkgdir" cmake --install build |
| 53 | } |
| 54 | |
| 55 | sha512sums=" |
| 56 | 4979c0545621a04690ab7dbba4f64f20bd4d7b7ac69e2a12a1b24f81e9bcd11fd5ac78714d7f8ea38902b78a45087b797a9240c1b17f83d8db05ff7736980421 plasma-thunderbolt-6.8.0.tar.xz |
| 57 | " |