void-packages/srcpkgs/bonnie++/template
2017-08-11 19:54:10 +02:00

27 lines
774 B
Bash

# Template file for 'bonnie++'
pkgname=bonnie++
version=1.97.3
revision=2
build_style=gnu-configure
short_desc="Hard Drive and Filesystem benchmark utility"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://www.coker.com.au/bonnie++/"
distfiles="http://www.coker.com.au/bonnie++/experimental/bonnie++-${version}.tgz"
checksum=e27b386ae0dc054fa7b530aab6bdead7aea6337a864d1f982bc9ebacb320746e
nocross="configure: error: cannot run test program while cross compiling"
post_extract() {
sed -i -e 's/sbin/bin/g' \
-e '/-o getc_putc_helper/s/CXX/LINK/' \
-e '/$(LINK)/s/$/ $(LDFLAGS)/' \
-e 's#@mandir@#$(eprefix)/share/man#g' \
Makefile.in
}
pre_build() {
export MORECFLAGS="$CFLAGS"
}
do_install() {
make prefix=${DESTDIR}/usr install
}