From 0961a19ce1bc092106d17275041547fb3c95867e Mon Sep 17 00:00:00 2001 From: Rich Date: Mon, 12 Jul 2021 10:25:23 -0400 Subject: [PATCH] add kde-plasma csc build --- .../kde-plasma/armbian/create_desktop_package.sh | 13 +++++++++++++ .../environments/kde-plasma/config_base/packages | 1 + .../pinebook-pro/armbian/create_desktop_package.sh | 5 +++++ .../custom/boards/pinebook-pro/debian/postinst | 1 + .../focal/environments/kde-plasma/debian/postinst | 5 +++++ .../desktop/focal/environments/kde-plasma/only_for | 1 + .../desktop/focal/environments/kde-plasma/support | 1 + 7 files changed, 27 insertions(+) create mode 100755 config/desktop/focal/environments/kde-plasma/armbian/create_desktop_package.sh create mode 100755 config/desktop/focal/environments/kde-plasma/config_base/packages create mode 100755 config/desktop/focal/environments/kde-plasma/custom/boards/pinebook-pro/armbian/create_desktop_package.sh create mode 100755 config/desktop/focal/environments/kde-plasma/custom/boards/pinebook-pro/debian/postinst create mode 100755 config/desktop/focal/environments/kde-plasma/debian/postinst create mode 100755 config/desktop/focal/environments/kde-plasma/only_for create mode 100755 config/desktop/focal/environments/kde-plasma/support diff --git a/config/desktop/focal/environments/kde-plasma/armbian/create_desktop_package.sh b/config/desktop/focal/environments/kde-plasma/armbian/create_desktop_package.sh new file mode 100755 index 0000000000..2b1bd52150 --- /dev/null +++ b/config/desktop/focal/environments/kde-plasma/armbian/create_desktop_package.sh @@ -0,0 +1,13 @@ +# install lightdm greeter +cp -R "${SRC}"/packages/blobs/desktop/lightdm "${destination}"/etc/armbian + +# install default desktop settings +#mkdir -p "${destination}"/etc/skel +#cp -R "${SRC}"/packages/blobs/desktop/skel/. "${destination}"/etc/skel + +# install logo for login screen +cp "${SRC}"/packages/blobs/desktop/icons/armbian.png "${destination}"/usr/share/pixmaps + +# install wallpapers +mkdir -p "${destination}"/usr/share/backgrounds/armbian/ +cp "${SRC}"/packages/blobs/desktop/wallpapers/armbian*.jpg "${destination}"/usr/share/backgrounds/armbian/ diff --git a/config/desktop/focal/environments/kde-plasma/config_base/packages b/config/desktop/focal/environments/kde-plasma/config_base/packages new file mode 100755 index 0000000000..7fb1016e78 --- /dev/null +++ b/config/desktop/focal/environments/kde-plasma/config_base/packages @@ -0,0 +1 @@ +xserver-xorg xserver-xorg-video-fbdev gvfs-backends gvfs-fuse xfonts-base xinit x11-xserver-utils kde-plasma-desktop gtk2-engines gtk2-engines-murrine gtk2-engines-pixbuf libgtk2.0-bin network-manager-gnome gnome-keyring gcr libgck-1-0 p11-kit pasystray pavucontrol pulseaudio pavumeter bluez bluez-tools pulseaudio-module-bluetooth blueman libpam-gnome-keyring libgl1-mesa-dri policykit-1 profile-sync-daemon gnome-orca numix-gtk-theme synaptic apt-xapian-index lightdm lightdm-gtk-greeter diff --git a/config/desktop/focal/environments/kde-plasma/custom/boards/pinebook-pro/armbian/create_desktop_package.sh b/config/desktop/focal/environments/kde-plasma/custom/boards/pinebook-pro/armbian/create_desktop_package.sh new file mode 100755 index 0000000000..87d2717401 --- /dev/null +++ b/config/desktop/focal/environments/kde-plasma/custom/boards/pinebook-pro/armbian/create_desktop_package.sh @@ -0,0 +1,5 @@ +# install custom xorg for pinebook-pro +cp -R "${SRC}"/packages/bsp/pinebook-pro/xorg.conf "${destination}"/etc/X11/xorg.conf.d/ + +# install custom asound state for pinebook-pro +cp -R "${SRC}"/packages/asound.state/ "${destination}"/etc/ \ No newline at end of file diff --git a/config/desktop/focal/environments/kde-plasma/custom/boards/pinebook-pro/debian/postinst b/config/desktop/focal/environments/kde-plasma/custom/boards/pinebook-pro/debian/postinst new file mode 100755 index 0000000000..93930e277d --- /dev/null +++ b/config/desktop/focal/environments/kde-plasma/custom/boards/pinebook-pro/debian/postinst @@ -0,0 +1 @@ +echo "Hello from debian/postinst in the DDE for PineBook-Pro !" diff --git a/config/desktop/focal/environments/kde-plasma/debian/postinst b/config/desktop/focal/environments/kde-plasma/debian/postinst new file mode 100755 index 0000000000..55d40480f4 --- /dev/null +++ b/config/desktop/focal/environments/kde-plasma/debian/postinst @@ -0,0 +1,5 @@ +# overwrite stock lightdm greeter configuration +if [ -d /etc/armbian/lightdm ]; then cp -R /etc/armbian/lightdm /etc/; fi + +# Disable Pulseaudio timer scheduling which does not work with sndhdmi driver +if [ -f /etc/pulse/default.pa ]; then sed "s/load-module module-udev-detect$/& tsched=0/g" -i /etc/pulse/default.pa; fi diff --git a/config/desktop/focal/environments/kde-plasma/only_for b/config/desktop/focal/environments/kde-plasma/only_for new file mode 100755 index 0000000000..d400067581 --- /dev/null +++ b/config/desktop/focal/environments/kde-plasma/only_for @@ -0,0 +1 @@ +arm64 diff --git a/config/desktop/focal/environments/kde-plasma/support b/config/desktop/focal/environments/kde-plasma/support new file mode 100755 index 0000000000..03cd470150 --- /dev/null +++ b/config/desktop/focal/environments/kde-plasma/support @@ -0,0 +1 @@ +csc