pmaports/kde/plasma-bigscreen/APKBUILD

71 lines
2 KiB
Text

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=plasma-bigscreen
pkgver=0_git20210402
pkgrel=0
_commit="0ff484e83c03eb9632bd6f052882b36421333e8a"
pkgdesc="A 10-feet interface made for TVs"
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="
kdeconnect
kirigami2
plasma-nano
plasma-nm
plasma-pa
plasma-settings
plasma-workspace
"
makedepends="
extra-cmake-modules
kactivities-dev
kactivities-stats-dev
kcmutils-dev
kdeclarative-dev
ki18n-dev
kio-dev
kirigami2-dev
knotifications-dev
kwayland-dev
kwindowsystem-dev
plasma-framework-dev
plasma-workspace-dev
qt5-qtbase-dev
qt5-qtdeclarative-dev
qt5-qtmultimedia-dev
"
source="https://invent.kde.org/plasma/plasma-bigscreen/-/archive/$_commit/plasma-bigscreen-$_commit.tar.gz"
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 \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
cmake --build build
}
check() {
cd build
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="379883b67900f36ebb5ececd7efeb2894bc8922ef6b2d111684c43cf13adcca9992fa2ec8e8e700dd1e0f0989f9849b836ec55b5686b03121cb50eb021b3d8df plasma-bigscreen-0ff484e83c03eb9632bd6f052882b36421333e8a.tar.gz"