APKBUILD 1.26 KB
Newer Older
Bart Ribbers's avatar
Bart Ribbers committed
1 2 3
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=plasma-pa
4
pkgver=5.17.4
5
pkgrel=0
Bart Ribbers's avatar
Bart Ribbers committed
6
pkgdesc="Plasma applet for audio volume management using PulseAudio"
7
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
Bart Ribbers's avatar
Bart Ribbers committed
8 9 10
url="https://www.kde.org/workspaces/plasmadesktop/"
license="LGPL-2.1-only OR LGPL-3.0-only AND GPL-2.0-only"
depends="pulseaudio kirigami2"
11
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"
12
source="https://download.kde.org/stable/plasma/$pkgver/plasma-pa-$pkgver.tar.xz"
Bart Ribbers's avatar
Bart Ribbers committed
13 14
subpackages="$pkgname-doc $pkgname-lang"

15 16 17 18 19 20
prepare() {
	default_prepare

	mkdir "$builddir"/build
}

Bart Ribbers's avatar
Bart Ribbers committed
21
build() {
22 23
	cd "$builddir"/build
	cmake "$builddir" \
24
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
Bart Ribbers's avatar
Bart Ribbers committed
25
		-DCMAKE_INSTALL_PREFIX=/usr \
26 27
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DUSE_GCONF=OFF
Bart Ribbers's avatar
Bart Ribbers committed
28 29 30 31
	make
}

check() {
32
	cd "$builddir"/build
Bart Ribbers's avatar
Bart Ribbers committed
33 34 35 36
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
37
	cd "$builddir"/build
Bart Ribbers's avatar
Bart Ribbers committed
38
	DESTDIR="$pkgdir" make install
Bart Ribbers's avatar
Bart Ribbers committed
39
}
40
sha512sums="0eb78065471dc4055a6eb092c0083a1381682b90dd219fe6f7ab4489702419812e59f3017f41f0bf5b10bfcff42188985b044474271c20b7e68f9932a2fa73f2  plasma-pa-5.17.4.tar.xz"