void-packages/srcpkgs/dieharder/template

32 lines
881 B
Bash

# Template file for 'dieharder'
pkgname=dieharder
version=3.31.1
revision=7
build_style=gnu-configure
makedepends="gsl-devel"
short_desc="Testing and benchmarking tool for random number generators"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-only"
homepage="http://www.phy.duke.edu/~rgb/General/dieharder.php"
distfiles="http://www.phy.duke.edu/~rgb/General/dieharder/${pkgname}-${version}.tgz"
checksum=6cff0ff8394c553549ac7433359ccfc955fb26794260314620dfa5e4cd4b727f
disable_parallel_build=yes
CFLAGS="-D_GNU_SOURCE"
post_configure() {
sed -i '/^AM_CPPFLAGS/s, -I \${includedir},,
s,-I${prefix}/include,,' Makefile */Makefile
}
dieharder-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" -- development files"
pkg_install() {
vmove usr/include
vmove usr/share/man/man3
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}