pkgname=postmarketos-mkinitfs-hook-debug-shell
pkgver=0.4.1
pkgrel=0
pkgdesc="Root shell in the initramfs (security hole, for debugging only)"
url="https://postmarketos.org"
depends="postmarketos-mkinitfs fbdebug evtest linuxconsoletools reboot-mode libinput libinput-tools"
source="20-debug-shell.sh 20-debug-shell.files"
arch="noarch"
license="GPL2"
options="!check"

package() {
	mkdir -p "$pkgdir"/etc/postmarketos-mkinitfs/hooks/
	install -Dm644 "$srcdir"/20-debug-shell.sh \
		"$pkgdir"/etc/postmarketos-mkinitfs/hooks/20-debug-shell.sh
	install -Dm644 "$srcdir"/20-debug-shell.files \
		"$pkgdir"/etc/postmarketos-mkinitfs/files/20-debug-shell.files
}

sha512sums="
c84963c0c38b5d0633f7e7be3b36cfb5f5906509ddbd91b5dcb041a9ac82dc222811b8442ec9da01a9fc475a8e45eb931cf087845469e71d069d3b3525206423  20-debug-shell.sh
ca37f761c23c7fe7a351a13f535531580e740a14bb627cd65963287200a616d41c76185bed6aff3abeafe6b0ca9c61f15ee9343f1492dfdba0fe3b6d38e1d3e4  20-debug-shell.files
"
