kde/plasma-bigscreen: new aport (MR 1552)

This commit is contained in:
Bart Ribbers 2020-05-10 13:30:16 +02:00
parent f88001e233
commit 9b0a415346
No known key found for this signature in database
GPG key ID: 0B19D2A65870B448
3 changed files with 91 additions and 0 deletions

View file

@ -0,0 +1,69 @@
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=plasma-bigscreen
pkgver=0_git20200731
pkgrel=0
_commit="c0497ce2a98db02a62f5e1eb15dcb4761cef2f96"
pkgdesc="A 10-feet interface made for TVs"
url="https://invent.kde.org/kde/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/kde/plasma-bigscreen/-/archive/$_commit/plasma-bigscreen-$_commit.tar.gz
plasma-bigscreen.sh
plasma-bigscreen.desktop
"
builddir="$srcdir/plasma-bigscreen-$_commit"
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
install -Dm755 "$srcdir"/plasma-bigscreen.sh \
"$pkgdir"/usr/bin/plasma-bigscreen
install -Dm755 "$srcdir"/plasma-bigscreen.desktop \
"$pkgdir"/usr/share/wayland-sessions/plasma-bigscreen.desktop
}
sha512sums="0a8086cccefb039013f81f539da658d8d86237ff219fe47126ff2efbf9fa5c7d2466a5943bda1ed587e454f0ef986b49c4bf51963a8f9c405cb20ae474b4404e plasma-bigscreen-c0497ce2a98db02a62f5e1eb15dcb4761cef2f96.tar.gz
dae4247c695fd76d666a605d882817fa0e72d101bc36e15715663c3c980ba01fcb0936761d587f693bb642c957f0ed51b938428ef2d4ee144e8dcf99135049d6 plasma-bigscreen.sh
d7b18b9ebbd1e2f1aad9e30d512c2203d6e610c715494aaa8fef0c63bd52e211b62a639c477073c26309b401af4e9183a5b54ab617eac6f74e58b45f4103d57b plasma-bigscreen.desktop"

View file

@ -0,0 +1,2 @@
[Desktop Entry]
Exec=/usr/bin/plasma-bigscreen

View file

@ -0,0 +1,20 @@
#!/bin/sh
[ -f /etc/profile ] && . /etc/profile
export QT_QPA_PLATFORM=wayland
export QT_QPA_PLATFORMTHEME=KDE
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export EGL_PLATFORM=wayland
export QT_QUICK_CONTROLS_STYLE=Plasma
export QT_ENABLE_GLYPH_CACHE_WORKAROUND=1
export QT_QUICK_CONTROLS_MOBILE=true
export PLASMA_PLATFORM=phone:handset
export QT_VIRTUALKEYBOARD_STYLE=Plasma
export GRID_UNIT_PX=25
export FORCE_RIL_NUM_MODEMS=1
export PLASMA_DEFAULT_SHELL=org.kde.plasma.mycroft.bigscreen
touch /tmp/simplelogin_starting
dbus-run-session startplasma-wayland --xwayland --libinput --inputmethod maliit-server --exit-with-session=/usr/lib/libexec/startplasma-waylandsession