kde/plasma-bigscreen: add qmlplugindump workaround

Should unlock BPO for armv7

See also: pmbootstrap#1970

[ci:skip-vercheck]: should not affect the resulting binary package
This commit is contained in:
Alexey Min 2020-09-20 03:04:07 +03:00
parent 01019884fb
commit dde1d81a85
No known key found for this signature in database
GPG key ID: 0B19D2A65870B448

View file

@ -5,7 +5,7 @@ pkgver=0_git20200731
pkgrel=0
_commit="c0497ce2a98db02a62f5e1eb15dcb4761cef2f96"
pkgdesc="A 10-feet interface made for TVs"
url="https://invent.kde.org/kde/plasma-bigscreen/"
url="https://invent.kde.org/plasma/plasma-bigscreen/"
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
license="Apache-2.0 AND LGPL-2.0-only AND LGPL-2.1-only AND GPL-2.0-only"
depends="
@ -35,12 +35,25 @@ makedepends="
qt5-qtdeclarative-dev
qt5-qtmultimedia-dev
"
source="https://invent.kde.org/kde/plasma-bigscreen/-/archive/$_commit/plasma-bigscreen-$_commit.tar.gz
source="https://invent.kde.org/plasma/plasma-bigscreen/-/archive/$_commit/plasma-bigscreen-$_commit.tar.gz
plasma-bigscreen.sh
plasma-bigscreen.desktop
"
builddir="$srcdir/plasma-bigscreen-$_commit"
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
sed -i "s/ecm_find_qmlmodule/# ecm_find_qmlmodule/g" kcms/audio-device-chooser/CMakeLists.txt
sed -i "s/ecm_find_qmlmodule/# ecm_find_qmlmodule/g" kcms/kdeconnect/CMakeLists.txt
sed -i "s/ecm_find_qmlmodule/# ecm_find_qmlmodule/g" kcms/wifi/CMakeLists.txt
fi
}
build() {
cmake -B build \
-DCMAKE_BUILD_TYPE=None \