From 7dafca2635a0a1f962d410c39bc4802f6786b978 Mon Sep 17 00:00:00 2001 From: yenon Date: Fri, 20 May 2022 12:06:55 +0200 Subject: [PATCH] Added avahi for icon removal --- remove-avahi-icons/PKGBUILD | 11 +++++++++++ remove-avahi-icons/remove-avahi-icons.hook | 9 +++++++++ 2 files changed, 20 insertions(+) create mode 100644 remove-avahi-icons/PKGBUILD create mode 100644 remove-avahi-icons/remove-avahi-icons.hook diff --git a/remove-avahi-icons/PKGBUILD b/remove-avahi-icons/PKGBUILD new file mode 100644 index 0000000..e0fc047 --- /dev/null +++ b/remove-avahi-icons/PKGBUILD @@ -0,0 +1,11 @@ +pkgname=remove-avahi-icons +pkgver=1.0.0 +pkgrel=1 +pkgdesc="Remove avahi tools via pacman-hook." +arch=('any') +source=(remove-avahi-icons.hook) +sha256sums=('a48b50c813b6ee9d165b0ded74f45a4d5b3c8e7e525e555b9ee234974f5cb3dd') + +package() { + install -Dm0644 -t "$pkgdir/usr/share/libalpm/hooks/" ${source[0]} +} diff --git a/remove-avahi-icons/remove-avahi-icons.hook b/remove-avahi-icons/remove-avahi-icons.hook new file mode 100644 index 0000000..a9298d0 --- /dev/null +++ b/remove-avahi-icons/remove-avahi-icons.hook @@ -0,0 +1,9 @@ +[Trigger] +Operation = Install +Operation = Upgrade +Type = Package +Target = avahi +[Action] +Description = Removing desktop entries for avahi +When = PostTransaction +Exec = /bin/sh -c "/usr/bin/rm /usr/share/applications/avahi-discover.desktop /usr/share/applications/bssh.desktop /usr/share/applications/bvnc.desktop"