# Contributor: omni <omni+alpine@hack.org>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=kernel-hardening-checker
pkgver=0.6.10
pkgrel=0
pkgdesc="A tool for checking the security hardening options of the Linux kernel"
options="!check" # no test suite
url="https://github.com/a13xp0p0v/kernel-hardening-checker"
arch="all"
license="GPL-3.0-or-later"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
provides="kconfig-hardened-check=$pkgver-r$pkgrel" # Backwards compatibility
source="$pkgname-$pkgver.tar.gz::https://github.com/a13xp0p0v/kernel-hardening-checker/archive/v$pkgver.tar.gz"

build() {
	gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
d006234c3d4eaea4440276fc18f3eb5eaf131dfdddec301063491b00562bdabe7b2528487eb5f5110c235a6b9a752a5896b7f5e71d2476358b207fd7da7e4426  kernel-hardening-checker-0.6.10.tar.gz
"
