[neon/kde/breeze/Neon/unstable] debian: drop the cursor alternatives sheninigans

Carlos De Maine null at kde.org
Wed Aug 30 06:40:53 BST 2023


Git commit cbbe5825f8117205d218bc78e996f94326270af3 by Carlos De Maine.
Committed on 30/08/2023 at 07:40.
Pushed by carlosdem into branch 'Neon/unstable'.

drop the cursor alternatives sheninigans

D  +0    -1    debian/breeze-cursor-theme.dirs
M  +0    -5    debian/breeze-cursor-theme.install
D  +0    -30   debian/breeze-cursor-theme.postinst
D  +0    -15   debian/breeze-cursor-theme.prerm
D  +0    -20   debian/wrapperthemes.sh

https://invent.kde.org/neon/kde/breeze/-/commit/cbbe5825f8117205d218bc78e996f94326270af3

diff --git a/debian/breeze-cursor-theme.dirs b/debian/breeze-cursor-theme.dirs
deleted file mode 100644
index 9dd20b6..0000000
--- a/debian/breeze-cursor-theme.dirs
+++ /dev/null
@@ -1 +0,0 @@
-/usr/share/icons/default
diff --git a/debian/breeze-cursor-theme.install b/debian/breeze-cursor-theme.install
index 6d363c4..bf01097 100644
--- a/debian/breeze-cursor-theme.install
+++ b/debian/breeze-cursor-theme.install
@@ -1,7 +1,2 @@
-# Do NOT remove these files, they are required by the postinst maintscript
-# These are generated by the wrapperthemes.sh call in debian/rules, please
-# fix that instead if this breaks.
-etc/X11/cursors/Breeze_Light.theme
-etc/X11/cursors/breeze_cursors.theme
 usr/share/icons/Breeze_Light/
 usr/share/icons/breeze_cursors/
diff --git a/debian/breeze-cursor-theme.postinst b/debian/breeze-cursor-theme.postinst
deleted file mode 100644
index c522bfa..0000000
--- a/debian/breeze-cursor-theme.postinst
+++ /dev/null
@@ -1,30 +0,0 @@
-#! /bin/sh
-set -e
-
-TARGET=/usr/share/icons/default/index.theme
-ICONDIR=/etc/X11/cursors
-
-# breeze_cursors with 102 (DMZ+2) priority
-update-alternatives --install $TARGET x-cursor-theme \
-    $ICONDIR/breeze_cursors.theme 102
-
-# Breeze_Light with 41 (Oxygen+1) priority
-update-alternatives --install $TARGET x-cursor-theme \
-    $ICONDIR/Breeze_Light.theme 41
-
-case "$1" in
-    configure)
-        # On upgrade from a version that was badly managing the
-        # x-cursor-theme, remove the old ones from the alternatives.
-        version="$2"
-        if [ -n "$version" ] && \
-                dpkg --compare-versions "$version" lt "4:5.4.1-2~"; then
-            update-alternatives --remove x-cursor-theme \
-                /usr/share/icons/Breeze_Light/index.theme    || true
-            update-alternatives --remove x-cursor-theme \
-                /usr/share/icons/breeze_cursors/index.theme || true
-        fi
-        ;;
-esac
-
-#DEBHELPER#
diff --git a/debian/breeze-cursor-theme.prerm b/debian/breeze-cursor-theme.prerm
deleted file mode 100644
index 7a53c7b..0000000
--- a/debian/breeze-cursor-theme.prerm
+++ /dev/null
@@ -1,15 +0,0 @@
-#! /bin/sh
-set -e
-
-ICONDIR=/etc/X11/cursors
-
-case "$1" in
-    remove|deconfigure|failed-upgrade)
-       update-alternatives --remove x-cursor-theme \
-           $ICONDIR/breeze_cursors.theme
-       update-alternatives --remove x-cursor-theme \
-           $ICONDIR/Breeze_Light.theme
-    ;;
-esac
-
-#DEBHELPER#
diff --git a/debian/wrapperthemes.sh b/debian/wrapperthemes.sh
deleted file mode 100755
index 4f3e983..0000000
--- a/debian/wrapperthemes.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-set -e
-
-ICONDIR=/usr/share/icons
-WRAPPERDIR=/etc/X11/cursors
-: ${CURDIR:=`pwd`}
-
-tmp="$(mktemp)"
-
-while [ $# -gt 0 ]; do
-    theme=$1
-    shift
-
-    mkdir -p ${CURDIR}/debian/tmp${WRAPPERDIR}
-    cd ${CURDIR}/debian/tmp${ICONDIR}
-    grep -a -v Inherits ${CURDIR}/debian/tmp${ICONDIR}/${theme}/index.theme > "$tmp"
-    echo "Inherits=${theme}" >> "$tmp"
-    install -m 644 "$tmp" ${CURDIR}/debian/tmp${WRAPPERDIR}/${theme}.theme
-    rm "$tmp"
-done


More information about the Neon-commits mailing list