# Maintainer: Mark <clashclanacc2602@gmail.com>
pkgname=postmarketos-mkinitfs-hook-netboot
pkgver=2
pkgrel=0
pkgdesc="Netboot postmarketOS using nbd feature"
url="https://postmarketos.org"
depends="postmarketos-mkinitfs"
source="
	netboot.sh
	netboot.modules
	"
arch="noarch"
license="GPL-2.0-or-later"
options="!check" # No tests

package() {
	install -Dm644 "$srcdir"/netboot.sh \
		"$pkgdir"/etc/postmarketos-mkinitfs/hooks/netboot.sh
	install -Dm644 "$srcdir"/netboot.modules \
		"$pkgdir"/etc/postmarketos-mkinitfs/modules/30-netboot.modules
}

sha512sums="
5c70572944bce9abd4196b4fc8c2df9f90ec7e15d2ff8fce691120ee10f120521fa57f1d2c0edd1d489e113a2b16862d9e02b716e83e6d3251d7525a5152f349  netboot.sh
3c9c812a6cd25640e6cf4d722cff6c6356d5666ec6009b4c65f89e62211cc406d2cd09e0fdda6b1c1906ee32c3854988ab701cee8811208e3ef666f09e638568  netboot.modules
"