-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPKGBUILD
More file actions
executable file
·54 lines (47 loc) · 1.96 KB
/
PKGBUILD
File metadata and controls
executable file
·54 lines (47 loc) · 1.96 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#shellcheck shell=bash
# Maintainer: shadichy <shadichy@blisslabs.org>
pkgbase=grub-secureboot-scripts
pkgname=$pkgbase
pkgver=0.0.2
pkgrel=9
pkgdesc='GRUB SecureBoot scripts to setup SecureBoot using sbctl with automatic signing of GRUB files and kernel images'
arch=('any')
march=''
url='https://github.com/shadichy/grub-sbctl'
license=('GPLv3')
depends=('grub' 'sbctl' 'bash')
source=(
'gsb.conf'
'grub-sbctl-sign'
'setup.sh'
'91-sign-grub.hook'
'grub-sbctl-setup-completion'
)
sha512sums=(
'40e0388f1e2de0eb5f5f67c3eb0853c51463c946c6aecd75bc91649f51610992a4fc3cadf76f852bf40d80f06e735a56a174d19eeb3cf449c6cc19b7dc1fc84c'
'b24a23432adae94bc96abd40e7dd92544aadce9bdb44fd1d0e9b900ac28b6c6b1b913f12a1fb147dddc24df6e0ad8e6e44e0a61d0ca2c09cce278fc8cd9748fe'
'8fe05c81026ffa39f9503fdfa7cdff7ca20529d440ab8138196b97098d58b8d9fa44897a5f4724f223e01db8202de59cbfb68bc368c948330f718be7993c01b5'
'b3611b9c6fd99f89612c17468b011aa52716bd61dcf23e547516d633d0f1ce499b272007fa2f04813baf82dc08f4653a99907a59d906ff1c1937418181ccf2a2'
'f2eb1166e65d5e1809949be154e80a1240f0f9e043600e212ccaf40c7aee1dfc23afffe18ea192e3d62dbb229dbd0995261563ea79cf886eed32351b69565d37'
)
pkgver() {
cat $srcdir/../VERSION
}
package() {
mkdir -p $pkgdir/{etc,usr/{bin,share/{grub/sbctl,libalpm/hooks,bash-completion/completions,zsh/site-functions}}}
local -a \
dir644=(etc usr/{bin,share/libalpm/hooks}) \
dir755=(usr/{bin,share/{grub/sbctl,bash-completion/completions,zsh/site-functions}})
for d in "${dir644[@]}"; do
install -dm644 "$pkgdir/$d"
done
for d in "${dir755[@]}"; do
install -dm755 "$pkgdir/$d"
done
install -m755 'grub-sbctl-setup-completion' $pkgdir/usr/share/bash-completion/completions/setup.sh
install -m755 'grub-sbctl-setup-completion' $pkgdir/usr/share/zsh/site-functions/_setup.sh
install -m644 'gsb.conf' $pkgdir/etc
install -m644 '91-sign-grub.hook' $pkgdir/usr/share/libalpm/hooks
install -m755 'grub-sbctl-sign' $pkgdir/usr/bin
install -m755 'setup.sh' $pkgdir/usr/share/grub/sbctl
}