summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurélien COUDERC <zecoucou@free.fr>2016-11-30 20:29:12 (GMT)
committerAurélien COUDERC <zecoucou@free.fr>2016-11-30 23:57:34 (GMT)
commit73a38129b358a039301f86e436719aec63e0f10f (patch)
tree7eec08943147217ad2ec6da5a3e219eaa10b3513
parentc5ae9beb727b80ec5c46b89976cd7b9a6974850b (diff)
Create debian-breeze SDDM theme, add alternatives for use by SDDM
-rw-r--r--debian/control21
-rw-r--r--debian/patches/add_sddm_debian_breeze.patch51
-rw-r--r--debian/patches/series1
-rw-r--r--debian/sddm-theme-breeze.postinst13
-rw-r--r--debian/sddm-theme-breeze.prerm12
-rw-r--r--debian/sddm-theme-debian-breeze.install1
-rw-r--r--debian/sddm-theme-debian-breeze.postinst13
-rw-r--r--debian/sddm-theme-debian-breeze.prerm12
8 files changed, 124 insertions, 0 deletions
diff --git a/debian/control b/debian/control
index 17caef9..8f964fb 100644
--- a/debian/control
+++ b/debian/control
@@ -254,3 +254,24 @@ Description: Breeze SDDM theme
Taskmanager library.
.
This package contains the files for the breeze SDDM theme.
+
+Package: sddm-theme-debian-breeze
+Architecture: any
+Depends: plasma-framework,
+ plasma-workspace,
+ sddm-theme-breeze,
+ ${misc:Depends},
+ ${shlibs:Depends}
+Recommends: sddm,
+ desktop-base (>= 9.0.0~)
+Provides: sddm-theme
+Breaks: plasma-workspace (<< 4:5.0.2-0ubuntu1~ubuntu14.10~ppa5)
+Replaces: plasma-workspace (<< 4:5.0.2-0ubuntu1~ubuntu14.10~ppa5)
+Description: Debian Breeze SDDM theme
+ Plasma Workspace for KF5. Workspaces provide
+ support for KDE Plasma Widgets, integrated search,
+ hardware management and a high degree of customizability.
+ Taskmanager library.
+ .
+ This package contains the files for the breeze SDDM theme adapted
+ to use the active desktop-base theme for the background.
diff --git a/debian/patches/add_sddm_debian_breeze.patch b/debian/patches/add_sddm_debian_breeze.patch
new file mode 100644
index 0000000..d7313a2
--- /dev/null
+++ b/debian/patches/add_sddm_debian_breeze.patch
@@ -0,0 +1,51 @@
+Index: plasma-workspace/CMakeLists.txt
+===================================================================
+--- plasma-workspace.orig/CMakeLists.txt 2016-12-01 00:31:20.000000000 +0100
++++ plasma-workspace/CMakeLists.txt 2016-12-01 00:42:40.883970067 +0100
+@@ -122,6 +122,17 @@
+ #NOTE this trailing slash is important to rename the directory
+ install(DIRECTORY sddm-theme/ DESTINATION ${KDE_INSTALL_FULL_DATADIR}/sddm/themes/breeze PATTERN "README.txt" EXCLUDE PATTERN "components" EXCLUDE PATTERN "dummydata" EXCLUDE)
+ install(DIRECTORY lookandfeel/contents/components DESTINATION ${KDE_INSTALL_FULL_DATADIR}/sddm/themes/breeze PATTERN "README.txt" EXCLUDE)
++
++# Install Debian-themed SDDM theme
++ file(COPY "sddm-theme/Main.qml" DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}/sddm-theme-debian")
++ set(SED_EXPR "s=^[[:space:]]*import[[:space:]]*\\\"components\\\"[[:space:]]*$=import \\\"../breeze\\\"\\nimport \\\"../breeze/components\\\"=")
++ execute_process(COMMAND sed -i -e "${SED_EXPR}" "${CMAKE_CURRENT_SOURCE_DIR}/sddm-theme-debian/Main.qml" RESULT_VARIABLE SED_RES OUTPUT_VARIABLE SED_OUT ERROR_VARIABLE SED_ERR)
++ message("Result of sed replacement for debian-breeze imports in Main.qml: (Res: ${SED_RES}, Out: ${SED_OUT}, Err: ${SED_ERR})")
++
++ #NOTE this trailing slash is important to rename the directory
++ install(DIRECTORY sddm-theme-debian/ DESTINATION ${KDE_INSTALL_FULL_DATADIR}/sddm/themes/debian-breeze)
++ # Patch Main.qml to directly use ../breeze qml files
++
+ endif()
+
+ add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
+Index: plasma-workspace/sddm-theme-debian/metadata.desktop
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ plasma-workspace/sddm-theme-debian/metadata.desktop 2016-12-01 00:31:24.000000000 +0100
+@@ -0,0 +1,17 @@
++[SddmGreeterTheme]
++Name=Debian Breeze
++Description=Breeze Theme using Debian artwork
++Description[fr]=Thème brise utilisant l’apparence Debian
++Author=David Edmundson
++Copyright=(c) 2014, David Edmundson
++License=CC-BY-SA
++Type=sddm-theme
++Version=0.1
++Website=https://github.com/sddm/sddm
++Screenshot=preview.png
++MainScript=Main.qml
++ConfigFile=theme.conf
++TranslationsDirectory=translations
++Email=davidedmundson@kde.org
++Theme-Id=debian-breeze
++Theme-API=2.0
+Index: plasma-workspace/sddm-theme-debian/theme.conf
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ plasma-workspace/sddm-theme-debian/theme.conf 2016-12-01 00:31:24.000000000 +0100
+@@ -0,0 +1,2 @@
++[General]
++background=/usr/share/desktop-base/active-theme/login/background.svg
diff --git a/debian/patches/series b/debian/patches/series
index c2f6268..f72e68d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
kubuntu_startkde-qtpath.diff
disable_incompatible_tests
Fix-Unable-to-assign-undefined-to-int-log.patch
+add_sddm_debian_breeze.patch
diff --git a/debian/sddm-theme-breeze.postinst b/debian/sddm-theme-breeze.postinst
new file mode 100644
index 0000000..fd3ded9
--- /dev/null
+++ b/debian/sddm-theme-breeze.postinst
@@ -0,0 +1,13 @@
+#!/bin/bash
+set -e
+
+if [[ "$1" = "configure" || "$1" = "abort-upgrade" || "$1" = "abort-remove" ]]; then
+ update-alternatives --install \
+ /usr/share/sddm/themes/debian-theme \
+ sddm-debian-theme \
+ /usr/share/sddm/themes/breeze 20
+fi
+
+# Tag to allow some debhelper commands to inject relevant code
+#DEBHELPER#
+
diff --git a/debian/sddm-theme-breeze.prerm b/debian/sddm-theme-breeze.prerm
new file mode 100644
index 0000000..b40de97
--- /dev/null
+++ b/debian/sddm-theme-breeze.prerm
@@ -0,0 +1,12 @@
+#!/bin/sh -e
+set -e
+
+if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then
+ update-alternatives --remove \
+ sddm-debian-theme \
+ /usr/share/sddm/themes/breeze
+fi
+
+# Tag to allow some debhelper commands to inject relevant code
+#DEBHELPER#
+
diff --git a/debian/sddm-theme-debian-breeze.install b/debian/sddm-theme-debian-breeze.install
new file mode 100644
index 0000000..138706d
--- /dev/null
+++ b/debian/sddm-theme-debian-breeze.install
@@ -0,0 +1 @@
+usr/share/sddm/themes/debian-breeze
diff --git a/debian/sddm-theme-debian-breeze.postinst b/debian/sddm-theme-debian-breeze.postinst
new file mode 100644
index 0000000..bbad8c8
--- /dev/null
+++ b/debian/sddm-theme-debian-breeze.postinst
@@ -0,0 +1,13 @@
+#!/bin/bash
+set -e
+
+if [[ "$1" = "configure" || "$1" = "abort-upgrade" || "$1" = "abort-remove" ]]; then
+ update-alternatives --install \
+ /usr/share/sddm/themes/debian-theme \
+ sddm-debian-theme \
+ /usr/share/sddm/themes/debian-breeze 50
+fi
+
+# Tag to allow some debhelper commands to inject relevant code
+#DEBHELPER#
+
diff --git a/debian/sddm-theme-debian-breeze.prerm b/debian/sddm-theme-debian-breeze.prerm
new file mode 100644
index 0000000..926b04a
--- /dev/null
+++ b/debian/sddm-theme-debian-breeze.prerm
@@ -0,0 +1,12 @@
+#!/bin/sh -e
+set -e
+
+if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then
+ update-alternatives --remove \
+ sddm-debian-theme \
+ /usr/share/sddm/themes/debian-breeze
+fi
+
+# Tag to allow some debhelper commands to inject relevant code
+#DEBHELPER#
+