kde/plasma-phone-components: upgrade to 0_git20191204 (!784)

This commit gets rid of our custom way of launching Plasma Mobile in
favor of using the upstream scripts. This is mostly in preparation for
the first commit after the one packaged here, as it'll move to a binary
launch script rather than using scripts.
This commit is contained in:
Bart Ribbers 2019-12-06 18:11:48 +01:00
parent ba3698fe3d
commit 23fefbff12
No known key found for this signature in database
GPG key ID: 699D16185DAFAE61
3 changed files with 15 additions and 57 deletions

View file

@ -1,26 +1,31 @@
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=plasma-phone-components
pkgver=0_git20191107
pkgver=0_git20191204
pkgrel=0
_commit="a1021e4d3cc5cb3b1a6ad0bdf2e3a0001b840b09"
_commit="a7a5a3f0037ba3047da2d8a6f850137e9c04bc1e"
pkgdesc="Modules providing phone functionality for Plasma"
arch="all !armhf"
url="https://www.plasma-mobile.org/"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
depends="plasma-nano qt5-qtquickcontrols2 plasma-workspace kactivities plasma-pa plasma-nm libqofono breeze-icons plasma-settings telepathy-ofono"
depends="plasma-nano qt5-qtquickcontrols2 plasma-workspace dbus-x11 kactivities plasma-pa plasma-nm libqofono breeze-icons plasma-settings telepathy-ofono"
makedepends="extra-cmake-modules kpeople-dev qt5-qtdeclarative-dev kactivities-dev plasma-framework-dev kservice-dev kdeclarative-dev ki18n-dev kio-dev kcoreaddons-dev kconfig-dev kbookmarks-dev kwidgetsaddons-dev kcompletion-dev kitemviews-dev kjobwidgets-dev solid-dev kxmlgui-dev kconfigwidgets-dev kauth-dev kcodecs-dev kpackage-dev kwindowsystem-dev kdbusaddons-dev knotifications-dev kwayland-dev telepathy-qt-dev libphonenumber-dev"
source="
$pkgname-$_commit.tar.gz::https://invent.kde.org/kde/plasma-phone-components/-/archive/$_commit/plasma-phone-components-$_commit.tar.gz
set-postmarketos-wallpaper.patch
startplasmamobile
plasma-mobile.desktop
"
options="!check" # No tests
builddir="$srcdir/$pkgname-$_commit"
prepare() {
default_prepare
mkdir "$builddir"/build
}
build() {
cmake \
cd "$builddir"/build
cmake "$builddir" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
@ -28,19 +33,13 @@ build() {
}
check() {
cd "$builddir"/build
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
cd "$builddir"/build
DESTDIR="$pkgdir" make install
install -D -m755 "$srcdir"/startplasmamobile \
"$pkgdir"/usr/bin/startplasmamobile
install -Dm644 "$srcdir"/plasma-mobile.desktop \
"$pkgdir"/usr/share/wayland-sessions/plasma-mobile-2.desktop
}
sha512sums="a9cb3b67370169883b018c1ece9929f170242e6ca90742bef945f17c2649cd68b7089a1b0fc9bbc0144c10419492821cd6d07fab34e68afe70e1a115c7c06b04 plasma-phone-components-a1021e4d3cc5cb3b1a6ad0bdf2e3a0001b840b09.tar.gz
5853e72077c356f8347ea1c8503d5e301505acaa39ccf2fa105abe054a3063e735f5bcb2db1c1357f53032714599bfbf687fff2cbe21a1743930b946900ff7cf set-postmarketos-wallpaper.patch
069485a372df96f1b438c026b259bc81a6b417d59f00ef42cfd38e13f0971ce8c63db1d31c7e9603a9a5e0bfedc35ba4a1f2af041b7e24304899f40c10b87432 startplasmamobile
7f4bdbd30cda4c9e23293b7bb1eb6e8536ada056cb3bcc9a6cc3db7bbc2277eac67b519992b7e46afdf5c720df9c696b43a6a9e9f82ed7ebe3937d8c0bf4d55d plasma-mobile.desktop"
sha512sums="828ce22811571cc74d2caa5a3369d2f1d9f6eb5b578a6acf57344c70cf27bf5f1531a2b16bc3ca65f34630a0fac07d032a7118f1453ed4660ed90206dc6f03b8 plasma-phone-components-a7a5a3f0037ba3047da2d8a6f850137e9c04bc1e.tar.gz
5853e72077c356f8347ea1c8503d5e301505acaa39ccf2fa105abe054a3063e735f5bcb2db1c1357f53032714599bfbf687fff2cbe21a1743930b946900ff7cf set-postmarketos-wallpaper.patch"

View file

@ -1,11 +0,0 @@
[Desktop Entry]
Name=Plasma Mobile
Name[en]=Plasma Mobile
Comment=This session logs you into Plasma Mobile
Comment[en]=This session logs you into Plasma Mobile
Exec=dbus-run-session /usr/bin/startplasmamobile
TryExec=/usr/bin/startplasmamobile
Icon=
Type=Application
X-DesktopNames=Plasma Mobile
Keywords=launch;Plasma;mobile;desktop;session;

View file

@ -1,30 +0,0 @@
#!/bin/sh
udevadm trigger
udevadm settle
export QML2_IMPORT_PATH=/usr/lib/qt/qml:/usr/lib/qt5/qml
export QT_QPA_PLATFORMTHEME=KDE
export QT_QUICK_CONTROLS_STYLE=Plasma
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export XDG_CURRENT_DESKTOP=KDE
export KDE_SESSION_VERSION=5
export PLASMA_PLATFORM=phone:handset
export QT_VIRTUALKEYBOARD_STYLE=Plasma
export QT_QUICK_CONTROLS_MOBILE=true
export QT_ENABLE_GLYPH_CACHE_WORKAROUND=1
sleep 2
if [ -d "/dev/dri" ]; then
kwin_wayland --drm --xwayland plasma-phone 2>&1 | logger -t "$(whoami):plasma-mobile"
else
# NOTE: using GALLIUM_DRIVER=llvmpipe might give you better performance (or not work at all.)
# If it does give you a performance gain, please open an issue to discuss how to implement this properly.
export GALLIUM_DRIVER=softpipe
export KWIN_COMPOSE=Q
export LIBGL_ALWAYS_SOFTWARE=1
echo "startplasmamobile: using software rendering with: ${GALLIUM_DRIVER}" | logger -t "$(whoami):plasma-mobile"
kwin_wayland --framebuffer --xwayland plasma-phone 2>&1 | logger -t "$(whoami):plasma-mobile"
fi