Merge branch 'main' of git.bgme.me:bgme/lilac
This commit is contained in:
commit
68b6a57240
17
repo/systemd-boot-pacman-hook/PKGBUILD
Normal file
17
repo/systemd-boot-pacman-hook/PKGBUILD
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# Maintainer: Federico Di Pierro <nierro92@gmail.com>
|
||||||
|
# Maintainer: Sefa Eyeoglu <contact@scrumplex.net>
|
||||||
|
|
||||||
|
pkgname=systemd-boot-pacman-hook
|
||||||
|
pkgver=3
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Pacman hook to upgrade systemd-boot after systemd upgrade."
|
||||||
|
arch=("any")
|
||||||
|
license=("GPL")
|
||||||
|
depends=('systemd')
|
||||||
|
source=(systemd-boot.hook)
|
||||||
|
md5sums=('cd8b1e530ce6f239923362492fda3f4f')
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -m755 -d "${pkgdir}/usr/share/libalpm/hooks"
|
||||||
|
install -m644 "${srcdir}/systemd-boot.hook" "${pkgdir}/usr/share/libalpm/hooks/95-systemd-boot.hook"
|
||||||
|
}
|
9
repo/systemd-boot-pacman-hook/systemd-boot.hook
Normal file
9
repo/systemd-boot-pacman-hook/systemd-boot.hook
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
[Trigger]
|
||||||
|
Type = Package
|
||||||
|
Operation = Upgrade
|
||||||
|
Target = systemd
|
||||||
|
|
||||||
|
[Action]
|
||||||
|
Description = Gracefully upgrading systemd-boot...
|
||||||
|
When = PostTransaction
|
||||||
|
Exec = /usr/bin/systemctl restart systemd-boot-update.service
|
Loading…
Reference in a new issue