maintainer="Luc Bijl <6msemf7ov@mozmail.com>"
pkgname=zlevis
pkgver=1.3
pkgrel=0
pkgdesc="Tool that enables automatic decryption of ZFS root-pools with TPM2"
url="https://git.bijl.us/luc/zlevis"
arch="noarch"
license="GPL-3.0-only"
depends="jose tpm2-tools"
makedepends="meson"
source="https://git.bijl.us/luc/zlevis/releases/download/$pkgver/zlevis-$pkgver.tar.xz"

build() {
	abuild-meson . output
}

check() {
	meson test --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
c70367259f1f37458d072715ab8b574669e6a63a775bcf45db170eabc460930d42a6c909d2d1c571c763be0720221887fd36dcd83e6e09f1662ce05db6be9001  zlevis-1.3.tar.xz
"
