# 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-pa pkgver=5.27.7 pkgrel=1 pkgdesc="Plasma applet for audio volume management using PulseAudio" # armhf blocked by qt5-qtdeclarative arch="all !armhf" url="https://kde.org/plasma-desktop/" license="LGPL-2.1-only OR LGPL-3.0-only AND GPL-2.0-only" depends="pulseaudio kirigami2" makedepends=" extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev kcoreaddons-dev kdeclarative-dev kdoctools-dev kglobalaccel-dev knotifications-dev ki18n-dev plasma-workspace-dev pulseaudio-dev libcanberra-dev samurai " case "$pkgver" in *.90*) _rel=unstable;; *) _rel=stable;; esac _repo_url="https://invent.kde.org/plasma/plasma-pa.git" source="https://download.kde.org/$_rel/plasma/$pkgver/plasma-pa-$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/plasma-pa.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 \ -DUSE_GCONF=OFF cmake --build build } check() { ctest --test-dir build --output-on-failure } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 59e9fb804d9397bf6cbbf7ae02e2cef048faf4e193e10c73fbc38ee95d1ca198b4b5d0e6c901a43182992f39949671d29d49f0006f0a0dd207163fbcc3885776 plasma-pa-5.27.7.tar.xz "