maintainer="Clayton Craft <clayton@craftyguy.net>"
pkgname=boot-deploy
pkgver=0.22.0
pkgrel=0
pkgdesc="tool for finalizing and deploying boot related files"
url="https://gitlab.postmarketos.org/postmarketOS/boot-deploy"
arch="noarch"
license="GPL-2.0-or-later"
source="
	https://gitlab.postmarketos.org/postmarketOS/boot-deploy/-/archive/$pkgver/boot-deploy-$pkgver.tar.gz

	os-customization
	"
depends="generate-kernel-cmdline"

check() {
	./test_boot_deploy_functions.sh
}

package() {
	install -Dm755 boot-deploy "$pkgdir"/usr/bin/boot-deploy
	install -Dm755 boot-deploy-functions.sh \
		"$pkgdir"/usr/share/boot-deploy/boot-deploy-functions.sh
	install -Dm644 "$srcdir"/os-customization \
		"$pkgdir"/usr/share/boot-deploy/os-customization

	touch boot-deploy-trigger
	install -Dm644 boot-deploy-trigger \
		"$pkgdir"/usr/share/mkinitfs-triggers/boot-deploy
}
sha512sums="
b3f8c3cf358fac80c7def65062afbdef606d4ce1e5d064ad45bf8acfc80e5ebe0d7fd8759e6763df2641ecd68e36c7eb072cb5090aa9d0168145dd5045a94048  boot-deploy-0.22.0.tar.gz
a243975b9850d9933e0f917f7eb38fc4a76ea658c3dcc56f035f60ee6c62d6740c1107143b8210bdc0231d4c9b6b2003e458120985604eb09649322d359ae89f  os-customization
"
