summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c217692a0916e4a0c038377317a9d50780f21a31 (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
# Maintainer: mrabe89 <mrabe@hatdev.de>
pkgname="secureboot.sh"
pkgdesc='A very basic script to setup secureboot'

pkgver=0.0.5
pkgrel=1

arch=('x86_64')
url='https://github.com/mrabe89/secureboot.sh'
license=('GPL')

depends=('systemd' 'dracut' 'efitools' 'sbsigntools')

backup=('etc/secureboot/config')

source=("$pkgname-$pkgver.tar.gz::https://github.com/mrabe89/${pkgname}/archive/v$pkgver.tar.gz")
sha256sums=('02ab0fc91177d4a043950e03530a7de5ac8d834dc70125c1f9db6ff452572105')

package() {
  cd "$srcdir/$pkgname-$pkgver/"
  install -D -m 700 "secureboot.sh"  "$pkgdir/usr/bin/secureboot.sh"
  install -D -m 644 "conf/archlinux" "$pkgdir/etc/secureboot/config"
  install -D -m 644 "linux-sb.hook"  "$pkgdir/usr/share/libalpm/hooks/90-linux-sb.hook"
  install -D -m 644 "fwupd-sb.hook"  "$pkgdir/usr/share/libalpm/hooks/90-fwupd-sb.hook"
}

# vim:set ts=2 sw=2 et: