archlinux: provide automatic qubes-trigger-sync-appmenus through pacman hooks
This commit is contained in:
parent
051d806f0a
commit
c82b82d7b4
@ -6,7 +6,7 @@
|
||||
# Maintainer: Olivier Medoc <o_medoc@yahoo.fr>
|
||||
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 <<EOF > $pkgdir/etc/systemd/system/getty@tty1.service.d/autologin.conf
|
||||
|
11
archlinux/PKGBUILD.qubes-update-desktop-icons.hook
Normal file
11
archlinux/PKGBUILD.qubes-update-desktop-icons.hook
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user