# Template file for 'jitterentropy'
pkgname=jitterentropy
version=3.4.1
revision=1
build_style=gnu-makefile
make_use_env=yes
short_desc="Hardware RNG based on CPU timing jitter"
maintainer="Piraty <mail@piraty.dev>"
license="BSD-3-Clause, GPL-2.0-only"
homepage="https://www.chronox.de/jent.html"
distfiles="https://www.chronox.de/jent/${pkgname}-library-${version}.tar.xz"
checksum=802f025f766c38abf663fd5a21482b8313b6d6e2c68c36a4ffd6bc105fe975ab

CFLAGS="-O0"

post_install() {
	vlicense LICENSE
	vlicense LICENSE.bsd
	vlicense LICENSE.gplv2
}

jitterentropy-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.so"
		vmove usr/share/man/man3
	}
}
