pmaports/temp/plasma-pa/APKBUILD
Bart Ribbers 0ccb5c05fd
temp/*: add qmlplugindump workaround (MR 1921)
Seems we missed these when forking Plasma and now the armv7 builders are
failing on it

[ci:skip-build] Won't succeed anyway as the packages haven't been
uploaded to the repos yet, so pmbootstrap will try to build the entirety
of Plasma and fail because it takes too long
[ci:skip-vercheck] No need to bump pkgrel
2021-02-03 12:51:55 +01:00

62 lines
1.5 KiB
Text

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=plasma-pa
pkgver=5.20.90
pkgrel=0
pkgdesc="Plasma applet for audio volume management using PulseAudio"
# armhf blocked by qt5-qtdeclarative
# s390x blocked by libksysguard
arch="all !armhf !s390x !mips64"
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
"
case "$pkgver" in
*.90*) _rel=unstable;;
*) _rel=stable;;
esac
source="https://download.kde.org/$_rel/plasma/$pkgver/plasma-pa-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"
prepare() {
default_prepare
# qmlplugindump fails for armv7+qemu (pmb#1970). This is purely for
# packager knowledge and doesn't affect runtime, so we can disable it.
if [ "$CARCH" = "armv7" ]; then
sed -i "s/ecm_find_qmlmodule/# ecm_find_qmlmodule/g" CMakeLists.txt
fi
}
build() {
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DUSE_GCONF=OFF
cmake --build build
}
check() {
cd build
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="0a0c6b5b2a1b0b06077bafb0bfebf70170a74726e4226be6122e380f482b337ff38a945a9a7982251d4845269b7619a4c0aaafb9b105b863a22c0d2c8fcfa478 plasma-pa-5.20.90.tar.xz"