. ${BUILDFILE%/*}/common.sh pkgver=20180909 package() { preamble pkgdesc="Parabola server configuration: Automatically update grub.cfg" depends+=(grub) add-file etc/pacman.d/hooks/95-grub-config.hook <<-'EOF' [Trigger] Type = File Operation = Install Operation = Upgrade Operation = Remove Target = boot/* Target = etc/grub.d/* Target = etc/default/grub Target = usr/share/holo/files/*/etc/default/grub* [Trigger] Type = Package Operation = Install Operation = Upgrade Target = grub [Action] Description = Updating GRUB configuration When = PostTransaction Exec = /usr/bin/grub-mkconfig -o /boot/grub/grub.cfg EOF postamble }