From 3dd5d22008e712376b403903bf8c81214e04691f Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (Cosmic Fusion)" <83735213+CosmicFusion@users.noreply.github.com> Date: Thu, 25 May 2023 19:36:20 +0300 Subject: [PATCH] Add discover link --- pika-kde-desktop/debian/changelog | 2 +- pika-kde-desktop/debian/control | 1 + pika-kde-desktop/debian/postinst | 14 ++++++++++++-- pika-kde-desktop/debian/postrm | 16 ++++++++++++++++ 4 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 pika-kde-desktop/debian/postrm diff --git a/pika-kde-desktop/debian/changelog b/pika-kde-desktop/debian/changelog index ef3948f..4169017 100644 --- a/pika-kde-desktop/debian/changelog +++ b/pika-kde-desktop/debian/changelog @@ -1,4 +1,4 @@ -pika-kde-desktop (3.8.2-99pika1.lunar) lunar; urgency=medium +pika-kde-desktop (3.8.3-99pika1.lunar) lunar; urgency=medium * Update to lunar diff --git a/pika-kde-desktop/debian/control b/pika-kde-desktop/debian/control index 951a23a..5ca79ae 100644 --- a/pika-kde-desktop/debian/control +++ b/pika-kde-desktop/debian/control @@ -135,6 +135,7 @@ Depends: ${misc:Depends}, fcitx5-module-xorg, kde-config-fcitx5, pika-gnome-keyboarding, + knewstuff-dialog, ## Last to replace mime information ark, Recommends: firefox, gir1.2-dbusmenu-glib-0.4, gir1.2-dbusmenu-gtk3-0.4, gir1.2-dbusmenu-gtk-0.4, libappindicator3-1 diff --git a/pika-kde-desktop/debian/postinst b/pika-kde-desktop/debian/postinst index 162f46e..1b5a5d8 100755 --- a/pika-kde-desktop/debian/postinst +++ b/pika-kde-desktop/debian/postinst @@ -1,6 +1,16 @@ -#!/bin/sh +#!/bin/bash set -e -ln -s /usr/bin/kreadconfig5 /usr/bin/kreadconfig +if [[ ! -f /usr/bin/kreadconfig ]] +then + ln -s /usr/bin/kreadconfig5 /usr/bin/kreadconfig +fi +if [[ ! -f /usr/share/applications/org.kde.discover.desktop ]] + ln -s /usr/share/applications/mintinstall.desktop /usr/share/applications/org.kde.discover.desktop +fi + +if [[ ! -f /usr/share/applications/org.kde.discover.apt.urlhandler.desktop ]] + ln -s /usr/share/applications/mintinstall.desktop /usr/share/applications/org.kde.discover.apt.urlhandler.desktop +fi diff --git a/pika-kde-desktop/debian/postrm b/pika-kde-desktop/debian/postrm new file mode 100644 index 0000000..cf7233d --- /dev/null +++ b/pika-kde-desktop/debian/postrm @@ -0,0 +1,16 @@ +#!/bin/bash + +set -e + +if readlink /usr/bin/kreadconfig +then + rm -rf /usr/bin/kreadconfig +fi + +if readlink /usr/share/applications/org.kde.discover.desktop + rm -rf /usr/share/applications/org.kde.discover.desktop +fi + +if readlink /usr/share/applications/org.kde.discover.apt.urlhandler.desktop + rm -rf /usr/share/applications/org.kde.discover.apt.urlhandler.desktop +fi