# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=plasma-thunderbolt pkgver=5.17.5 pkgrel=0 arch="all !armhf !armv7" # Limited by bolt -> polkit, armhf also limited by qt5-qtdeclarative url="https://www.kde.org/workspaces/plasmadesktop/" pkgdesc="Plasma integration for controlling Thunderbolt devices" license="GPL-2.0-only OR GPL-3.0-only" depends="bolt" makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev kcoreaddons-dev kcmutils-dev kdeclarative-dev ki18n-dev kdbusaddons-dev knotifications-dev" checkdepends="xvfb-run" source="https://download.kde.org/stable/plasma/$pkgver/plasma-thunderbolt-$pkgver.tar.xz" subpackages="$pkgname-lang" options="!check" # Requires running dbus server prepare() { default_prepare mkdir "$builddir"/build } build() { cd "$builddir"/build cmake "$builddir" \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make } check() { cd "$builddir"/build CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest } package() { cd "$builddir"/build DESTDIR="$pkgdir" make install } sha512sums="8287e20963a31af60dff75a659af455518d72813b7e04dfd5407de4bbcda422551a000fd3ff03b67d4a052dc0421058c8ae8c31c1a92d174277d6a02819f6f70 plasma-thunderbolt-5.17.5.tar.xz"