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> | # Maintainer: Olivier Medoc <o_medoc@yahoo.fr> | ||||||
| pkgname=qubes-vm-core | pkgname=qubes-vm-core | ||||||
| pkgver=`cat version` | pkgver=`cat version` | ||||||
| pkgrel=6 | pkgrel=7 | ||||||
| epoch= | epoch= | ||||||
| pkgdesc="The Qubes core files for installation inside a Qubes VM." | pkgdesc="The Qubes core files for installation inside a Qubes VM." | ||||||
| arch=("x86_64") | arch=("x86_64") | ||||||
| @ -25,10 +25,10 @@ options=() | |||||||
| install=PKGBUILD.install | install=PKGBUILD.install | ||||||
| changelog= | changelog= | ||||||
| 
 | 
 | ||||||
| source=(PKGBUILD.qubes-ensure-lib-modules.service) | source=(PKGBUILD.qubes-ensure-lib-modules.service PKGBUILD.qubes-update-desktop-icons.hook) | ||||||
| 
 | 
 | ||||||
| noextract=() | noextract=() | ||||||
| md5sums=('88f4b3d5b156888a9d38f5bc28702ab8') #generate with 'makepkg -g' | md5sums=('88f4b3d5b156888a9d38f5bc28702ab8' 'bbfb946d6d2787e5abf8e2236502a3d4') | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| build() { | build() { | ||||||
| @ -78,6 +78,10 @@ package() { | |||||||
|   # Install systemd script allowing to automount /lib/modules |   # 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 -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 |   # Archlinux specific: enable autologin on tty1 | ||||||
|   mkdir -p $pkgdir/etc/systemd/system/getty@tty1.service.d/ |   mkdir -p $pkgdir/etc/systemd/system/getty@tty1.service.d/ | ||||||
|   cat <<EOF > $pkgdir/etc/systemd/system/getty@tty1.service.d/autologin.conf |   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
	 Olivier MEDOC
						Olivier MEDOC