diff --git a/archlinux/PKGBUILD b/archlinux/PKGBUILD index b34452e..36eff5d 100644 --- a/archlinux/PKGBUILD +++ b/archlinux/PKGBUILD @@ -6,7 +6,7 @@ # Maintainer: Olivier Medoc pkgname=qubes-vm-core pkgver=`cat version` -pkgrel=6 +pkgrel=7 epoch= pkgdesc="The Qubes core files for installation inside a Qubes VM." arch=("x86_64") @@ -25,10 +25,10 @@ options=() install=PKGBUILD.install changelog= -source=(PKGBUILD.qubes-ensure-lib-modules.service) +source=(PKGBUILD.qubes-ensure-lib-modules.service PKGBUILD.qubes-update-desktop-icons.hook) noextract=() -md5sums=('88f4b3d5b156888a9d38f5bc28702ab8') #generate with 'makepkg -g' +md5sums=('88f4b3d5b156888a9d38f5bc28702ab8' 'bbfb946d6d2787e5abf8e2236502a3d4') build() { @@ -78,6 +78,10 @@ package() { # Install systemd script allowing to automount /lib/modules install -m 644 $srcdir/PKGBUILD.qubes-ensure-lib-modules.service ${pkgdir}/usr/lib/systemd/system/qubes-ensure-lib-modules.service + # Install pacman hook to update desktop icons + mkdir -p ${pkgdir}/usr/share/libalpm/hooks/ + install -m 644 $srcdir/PKGBUILD.qubes-update-desktop-icons.hook ${pkgdir}/usr/share/libalpm/hooks/qubes-update-desktop-icons.hook + # Archlinux specific: enable autologin on tty1 mkdir -p $pkgdir/etc/systemd/system/getty@tty1.service.d/ cat < $pkgdir/etc/systemd/system/getty@tty1.service.d/autologin.conf diff --git a/archlinux/PKGBUILD.qubes-update-desktop-icons.hook b/archlinux/PKGBUILD.qubes-update-desktop-icons.hook new file mode 100644 index 0000000..0501566 --- /dev/null +++ b/archlinux/PKGBUILD.qubes-update-desktop-icons.hook @@ -0,0 +1,11 @@ +[Trigger] +Type = File +Operation = Install +Operation = Upgrade +Operation = Remove +Target = usr/share/applications/*.desktop + +[Action] +Description = Updating the Qubes desktop file App Icons... +When = PostTransaction +Exec = /usr/lib/qubes/qubes-trigger-sync-appmenus.sh