# Maintainer: Yakov Till <yakov.till@gmail.com>
# Contributor: Federico Di Pierro <nierro92@gmail.com>
# Contributor: Sefa Eyeoglu <contact@scrumplex.net>

pkgname=systemd-boot-pacman-hook
pkgver=3
pkgrel=2
pkgdesc="Pacman hook to upgrade systemd-boot after systemd upgrade."
arch=("any")
url="https://wiki.archlinux.org/title/Systemd-boot#Automatic_update"
license=("GPL-1.0-or-later")
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"
}
