# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=plasma-pa
pkgver=5.13.4
pkgrel=0
pkgdesc="Plasma applet for audio volume management using PulseAudio"
arch="all"
url="https://www.kde.org/workspaces/plasmadesktop/"
license="GPL-2.0"
depends="pulseaudio"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev
		kcoreaddons-dev kdeclarative-dev kdoctools-dev kglobalaccel-dev
		ki18n-dev plasma-workspace-dev pulseaudio-dev libcanberra-dev gconf-dev"
source="https://download.kde.org/stable/plasma/${pkgver}/$pkgname-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"

build() {
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=Release \
		-DKDE_INSTALL_LIBDIR=lib \
		-DKDE_INSTALL_LIBEXECDIR=lib
	make
}

check() {
	cd "$builddir"
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}
sha512sums="347ec79201403eeb5859c54d29e7d1daee273972afce1014e3b8c81ae6256877e945c0748ab10e4ca1b195f085248c9f03c3db0c27d978506e8eb71fb5bc37a0  plasma-pa-5.13.4.tar.xz"
