blob: 21a70c371a6dc9a2d171bd144234f7788649bada (
plain)
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
|
pkgname="secureboot-grub"
_pkgname="secureboot"
pkgver=0.2.3
pkgrel=1
arch=("any")
url="https://github.com/zeroxoneafour/arch-secureboot"
pkgdesc="A set of helper scripts for secure boot with Grub2 and Shim"
license=("MIT")
depends=("openssl" "grub" "shim-signed" "sbsigntools" "efibootmgr")
source=("$_pkgname::git+https://github.com/zeroxoneafour/arch-secureboot")
sha256sums=("SKIP")
install=".install"
pkgver() {
cd $_pkgname
echo $(cat version.txt)
}
build() {
cd $_pkgname
bash ./build.sh
}
package() {
cd $_pkgname
install -D -m755 "secure-grub-install.sh" "$pkgdir/usr/bin/secure-grub-install"
install -D -m755 "sign-kernels.sh" "$pkgdir/usr/bin/sign-kernels"
install -D -m755 "secureboot.conf" "$pkgdir/etc/secureboot.conf"
for mok_file in $(ls | grep "MOK"); do
install -D -m644 "$mok_file" "$pkgdir/usr/share/$_pkgname/$mok_file"
done
install -D -m644 "91-sign-kernels.hook" "$pkgdir/usr/share/libalpm/hooks/91-sign-kernels.hook"
}
|