summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0d2dc6e920e32646a5ec0bb6f3016e7d5fa3ccec (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
34
35
36
# Maintainer: Nicolas Stalder <n+archlinux@stalder.io>
pkgname=grml-systemd-boot
pkgver="2024.02"
pkgrel=1
pkgdesc="GRML as systemd-boot loader entry"
url="https://wiki.archlinux.org/title/Systemd-boot#Grml_on_ESP"
arch=(any)
license=(GPL)
depends=(systemd)

source=(
	https://download.grml.org/grml64-small_$pkgver.iso
	grml.conf
)
noextract=(grml64-small_$pkgver.iso)
# add dummy entries for `make generate-checksums` to create SHA256 instead of MD5 check sums
sha256sums=(
  "c8107b72556bf691debcf9c12ea56be864a84e0df2397b1cde8cc3b6675fee41"
  "SKIP"
)

prepare() {
  cd $srcdir
  bsdtar xf grml64-small_$pkgver.iso boot/grml64small/vmlinuz
  bsdtar xf grml64-small_$pkgver.iso boot/grml64small/initrd.img
  bsdtar xf grml64-small_$pkgver.iso live/grml64-small/grml64-small.squashfs
}

package() {
  install -d ${pkgdir}/boot/grml
  cp $srcdir/boot/grml64small/vmlinuz $pkgdir/boot/grml
  cp $srcdir/boot/grml64small/initrd.img $pkgdir/boot/grml
  cp $srcdir/live/grml64-small/grml64-small.squashfs $pkgdir/boot/grml
  install -d $pkgdir/boot/loader/entries
  cp grml.conf $pkgdir/boot/loader/entries
}