aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2023-02-07 15:49:49 +0100
committerBart Ribbers <bribbers@disroot.org>2023-08-05 21:49:39 +0200
commited0551769f65e13b039dacaec88f6bce404dcb0b (patch)
tree508f8d5d9cc3b9ea462eda3e492e73de8acebff6
parent35e297896a31f9dde6fdaeca3e8246e353847a63 (diff)
community/plasma-mobile-meta: new aport
-rw-r--r--community/plasma-mobile-meta/000-gschema.override6
-rw-r--r--community/plasma-mobile-meta/APKBUILD84
-rw-r--r--community/plasma-mobile-meta/gtk-app-wayland.sh5
-rw-r--r--community/plasma-mobile-meta/kdeglobals5
-rw-r--r--community/plasma-mobile-meta/kdewallet.kwlbin0 -> 148 bytes
-rw-r--r--community/plasma-mobile-meta/kscreenlockerrc2
-rw-r--r--community/plasma-mobile-meta/kwinrc8
-rw-r--r--community/plasma-mobile-meta/maliit-plasmamobile.json41
-rw-r--r--community/plasma-mobile-meta/plasma-mobile-meta.post-install8
-rw-r--r--community/plasma-mobile-meta/qtlogging.ini70
10 files changed, 229 insertions, 0 deletions
diff --git a/community/plasma-mobile-meta/000-gschema.override b/community/plasma-mobile-meta/000-gschema.override
new file mode 100644
index 00000000000..d3c3e9e8a5a
--- /dev/null
+++ b/community/plasma-mobile-meta/000-gschema.override
@@ -0,0 +1,6 @@
+[org.gnome.desktop.wm.preferences]
+button-layout='appmenu:'
+
+[org.maliit.keyboard.maliit]
+device='plasmamobile'
+theme='Breeze'
diff --git a/community/plasma-mobile-meta/APKBUILD b/community/plasma-mobile-meta/APKBUILD
new file mode 100644
index 00000000000..ab0baa38f36
--- /dev/null
+++ b/community/plasma-mobile-meta/APKBUILD
@@ -0,0 +1,84 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=plasma-mobile-meta
+pkgver=0.1
+pkgrel=0
+pkgdesc="Plasma Mobile meta package"
+url="https://plasma-mobile.org"
+# armhf blocked by plasma-mobile
+arch="noarch !armhf"
+license="GPL-3.0-or-later"
+depends="
+ bluedevil
+ breeze
+ callaudiod
+ drkonqi
+ elogind
+ hfd-service
+ iio-sensor-proxy
+ iio-sensor-proxy-openrc
+ kscreen
+ kwallet-pam
+ kwayland-integration
+ modemmanager
+ networkmanager-dnsmasq
+ pipewire
+ plasma-mobile
+ polkit-kde-agent-1
+ powerdevil
+ pulseaudio
+ tinydm
+ xdg-desktop-portal-kde
+ "
+install="$pkgname.post-install"
+source="
+ 000-gschema.override
+ gtk-app-wayland.sh
+ kdeglobals
+ kdewallet.kwl
+ kscreenlockerrc
+ kwinrc
+ maliit-plasmamobile.json
+ qtlogging.ini
+ "
+options="!check" # No tests for a meta package
+
+package() {
+ install -Dm644 \
+ "$srcdir"/kwinrc \
+ -t "$pkgdir"/etc/xdg/
+
+ install -Dm644 \
+ "$srcdir"/kdeglobals \
+ "$srcdir"/kscreenlockerrc \
+ -t "$pkgdir"/etc/xdg
+
+ install -Dm644 \
+ "$srcdir"/qtlogging.ini \
+ -t "$pkgdir"/etc/xdg/QtProject/
+
+ install -Dm755 \
+ "$srcdir"/gtk-app-wayland.sh \
+ -t "$pkgdir"/etc/profile.d/
+
+ install -Dm644 "$srcdir"/000-gschema.override \
+ "$pkgdir"/usr/share/glib-2.0/schemas/000-postmarketos.gschema.override
+
+ install -Dm644 "$srcdir"/maliit-plasmamobile.json \
+ "$pkgdir"/usr/share/maliit/keyboard2/devices/plasmamobile.json
+
+ # A pre-configured kwallet with an empty password set
+ install -Dm600 "$srcdir"/kdewallet.kwl \
+ "$pkgdir"/etc/skel/.local/share/kwalletd/kdewallet.kwl
+}
+
+sha512sums="
+591529f147f161f5e97c979a9ad4b9f3a65e6d3b87a7bdbd020ec928155cfe5fd561cae6582c4b2831b452fe9b0a03168731771b77020fb66e09f81552ba421e 000-gschema.override
+57793bb079c76ba3bdcfca7880aa887de11fe80e7a05557b78435e57feabab70fbaeedc42da3aec6f914c35bba8e8ee9918367516eb45ee247f63f694624f179 gtk-app-wayland.sh
+004288752bdd3cc1aac09bd91e51b80f0793439cf638e2895dffba60ae25d63035185963a58b7cc1728c254ca39ba0c342fff7f2f4281f14903438ead44944d5 kdeglobals
+923309f71ee0840ae49d610ab5c11260432f462709eee7148ee5a4703872b9926a3267b16b524162c1560e0798c63fe392a161a57be5c6000bbb1e3f0c947e25 kdewallet.kwl
+20cdb856fb46b024d8368d469e9e0a9c45724fb6f27514edca9b733ea84b63644b6d0328780879285b4e649f7a02ea8761f6b607e127fb7b055b753bfd3ee3d2 kscreenlockerrc
+26c54eabd2e418d7f11667972ce38754036ace10537e75082a0a2013d81b593a8602af073be88b97f93204dbebf186265de06e47e125a0850555de8097693c30 kwinrc
+70ee87860842057b557a433a9ae7d54653f076a612b3d9de2d413d598806d23ec19390262eaa398cddf39437f1213d14922402a8d978878e5e98f3767ce0b9eb maliit-plasmamobile.json
+341f0b866c315f37868ef3e7137cce8b53a0e8e6164e5af71b3e8e2fa68321afbf0652d76124ef84bade1393f701748852ac939aef9daff7e272a0df827780eb qtlogging.ini
+"
diff --git a/community/plasma-mobile-meta/gtk-app-wayland.sh b/community/plasma-mobile-meta/gtk-app-wayland.sh
new file mode 100644
index 00000000000..9c4081090ca
--- /dev/null
+++ b/community/plasma-mobile-meta/gtk-app-wayland.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+# Most pure GTK3 apps use wayland by default, but some,
+# like Firefox, need the backend to be explicitely selected.
+export GDK_BACKEND=wayland
diff --git a/community/plasma-mobile-meta/kdeglobals b/community/plasma-mobile-meta/kdeglobals
new file mode 100644
index 00000000000..f380c411ac8
--- /dev/null
+++ b/community/plasma-mobile-meta/kdeglobals
@@ -0,0 +1,5 @@
+[General]
+BrowserApplication[$e]=!angelfish
+
+[KDE]
+LookAndFeelPackage=org.kde.plasma.phone
diff --git a/community/plasma-mobile-meta/kdewallet.kwl b/community/plasma-mobile-meta/kdewallet.kwl
new file mode 100644
index 00000000000..539188bafdf
--- /dev/null
+++ b/community/plasma-mobile-meta/kdewallet.kwl
Binary files differ
diff --git a/community/plasma-mobile-meta/kscreenlockerrc b/community/plasma-mobile-meta/kscreenlockerrc
new file mode 100644
index 00000000000..d4deffe9651
--- /dev/null
+++ b/community/plasma-mobile-meta/kscreenlockerrc
@@ -0,0 +1,2 @@
+[Daemon]
+LockOnStart=true
diff --git a/community/plasma-mobile-meta/kwinrc b/community/plasma-mobile-meta/kwinrc
new file mode 100644
index 00000000000..45ad48a9d12
--- /dev/null
+++ b/community/plasma-mobile-meta/kwinrc
@@ -0,0 +1,8 @@
+[Wayland]
+InputMethod[$e]=/usr/share/applications/com.github.maliit.keyboard.desktop
+VirtualKeyboardEnabled=true
+
+# This is here for legacy purposes since look-and-feel packages don't have an upgrade path
+# If the device came installed with Plasma 5.26 or newer, then this is not needed
+[org.kde.kdecoration2]
+NoPlugin=true
diff --git a/community/plasma-mobile-meta/maliit-plasmamobile.json b/community/plasma-mobile-meta/maliit-plasmamobile.json
new file mode 100644
index 00000000000..47b07b66728
--- /dev/null
+++ b/community/plasma-mobile-meta/maliit-plasmamobile.json
@@ -0,0 +1,41 @@
+{
+ "defaultGridUnitPx": 8,
+
+ "keyMargins": 0.25,
+
+ "fontSize": 2.5,
+ "fontBold": false,
+
+ "annotationFontSize": 10,
+ "annotationTopMargin": 0.35,
+ "annotationRightMargin": 0.65,
+
+ "magnifierHorizontalPadding": 1.8,
+ "magnifierVerticalPadding": 1,
+
+ "actionKeyPadding": 2,
+ "symbolShiftKeyFontSize": 2,
+ "smallFontSize": 1.5,
+
+ "popoverCellPadding": 2.2,
+ "popoverTopMargin": 10,
+ "popoverEdgeMargin": 2.2,
+ "popoverSquat": 3,
+
+ "top_margin": 1,
+ "bottom_margin": 0,
+ "row_margin": 0,
+ "rowMarginLandscape": 4,
+ "rowMarginPortrait": 7,
+
+ "emailLayoutUrlKeyPadding": 1.5,
+
+ "wordRibbonHeight": 4,
+ "wordRibbonFontSize": 14,
+
+ "keyboardHeightPortrait": 0.30,
+ "keyboardHeightLandscape": 0.39,
+
+ "flickMargin": 1.5,
+ "flickBorderWidth": 0.1
+}
diff --git a/community/plasma-mobile-meta/plasma-mobile-meta.post-install b/community/plasma-mobile-meta/plasma-mobile-meta.post-install
new file mode 100644
index 00000000000..3b1f286e5aa
--- /dev/null
+++ b/community/plasma-mobile-meta/plasma-mobile-meta.post-install
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+tinydm-set-session -s /usr/share/wayland-sessions/plasma-mobile.desktop
+
+saltfile=/etc/skel/.local/share/kwalletd/kdewallet.salt
+if ! [ -f "$saltfile" ]; then
+ busybox dd if=/dev/urandom of=$saltfile bs=1b count=1 >/dev/null 2>&1
+fi
diff --git a/community/plasma-mobile-meta/qtlogging.ini b/community/plasma-mobile-meta/qtlogging.ini
new file mode 100644
index 00000000000..71b71ce9fd9
--- /dev/null
+++ b/community/plasma-mobile-meta/qtlogging.ini
@@ -0,0 +1,70 @@
+[Rules]
+org.kde.kwindowsystem.info=true
+org.kde.kwindowsystem.warning=true
+org.kde.kwindowsystem.critical=true
+org.kde.kwindowsystem.debug=true
+kwin_core.info=true
+kwin_core.warning=true
+kwin_core.critical=true
+kwin_core.debug=true
+kwineffects.info=true
+kwineffects.warning=true
+kwineffects.critical=true
+kwineffects.debug=true
+libkwineffects.info=true
+libkwineffects.warning=true
+libkwineffects.critical=true
+libkwineffects.debug=true
+libkwinglutils.info=true
+libkwinglutils.warning=true
+libkwinglutils.critical=true
+libkwinglutils.debug=true
+libkwinxrenderutils.info=true
+libkwinxrenderutils.warning=true
+libkwinxrenderutils.critical=true
+libkwinxrenderutils.debug=true
+kwin_wayland_drm.info=true
+kwin_wayland_drm.warning=true
+kwin_wayland_drm.critical=true
+kwin_wayland_drm.debug=true
+kwin_wayland_framebuffer.info=true
+kwin_wayland_framebuffer.warning=true
+kwin_wayland_framebuffer.critical=true
+kwin_wayland_framebuffer.debug=true
+kwin_wayland_hwcomposer.debug=true
+kwin_wayland_backend.info=true
+kwin_wayland_backend.warning=true
+kwin_wayland_backend.critical=true
+kwin_wayland_backend.debug=true
+kwin_wayland_x11windowed.info=true
+kwin_wayland_x11windowed.warning=true
+kwin_wayland_x11windowed.critical=true
+kwin_wayland_x11windowed.debug=true
+kwin_platform_x11_standalone.info=true
+kwin_platform_x11_standalone.warning=true
+kwin_platform_x11_standalone.critical=true
+kwin_platform_x11_standalone.debug=true
+kwin_libinput.info=true
+kwin_libinput.warning=true
+kwin_libinput.critical=true
+kwin_libinput.debug=true
+kwin_tabbox.info=true
+kwin_tabbox.warning=true
+kwin_tabbox.critical=true
+kwin_tabbox.debug=true
+kwin_decorations.info=true
+kwin_decorations.warning=true
+kwin_decorations.critical=true
+kwin_decorations.debug=true
+kwin_scripting.info=true
+kwin_scripting.warning=true
+kwin_scripting.critical=true
+kwin_scripting.debug=true
+kwin_xkbcommon.info=true
+kwin_xkbcommon.warning=true
+kwin_xkbcommon.critical=true
+kwin_xkbcommon.debug=true
+kwin_qpa_plugin.info=true
+kwin_qpa_plugin.warning=true
+kwin_qpa_plugin.critical=true
+kwin_qpa_plugin.debug=true