-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPKGBUILD
39 lines (33 loc) · 1.19 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: DarkXero <[email protected]>
pkgname=grub-hooks
pkgdesc="Fixes, additions and enhancements to grub and os-prober."
pkgver=3.6
pkgrel=2
arch=('any')
license=('GPL')
depends=(coreutils efibootmgr gawk grep grub lsb-release)
optdepends=(os-prober)
backup=('etc/install-grub.conf')
replaces=("grub-tools")
url=https://github.com/xerolinux/$pkgname
_url="https://raw.githubusercontent.com/xerolinux/$pkgname/main"
source=(
$_url/grub-install.hook
$_url/grub-kernel.hook
$_url/grub-update.hook
$_url/reboot-checker.hook
$_url/reboot-check
$_url/reboot-notify
)
package() {
cd $srcdir
install -d $pkgdir/usr/share/libalpm/hooks
echo "Install grub-hooks"
install -Dm644 grub-install.hook $pkgdir/usr/share/libalpm/hooks/grub-install.hook
install -Dm644 grub-kernel.hook $pkgdir/usr/share/libalpm/hooks/grub-kernel.hook
install -Dm644 grub-update.hook $pkgdir/usr/share/libalpm/hooks/grub-update.hook
install -Dm644 reboot-checker.hook $pkgdir/usr/share/libalpm/hooks/reboot-checker.hook
echo "Install reboot-scripts"
install -Dm755 reboot-check $pkgdir/usr/local/bin/reboot-check
install -Dm755 reboot-notify $pkgdir/usr/local/bin/reboot-notify
}