void-packages/srcpkgs/bonnie++/template
2016-05-24 16:39:26 +02:00

26 lines
721 B
Bash

# Template file for 'bonnie++'
pkgname=bonnie++
version=1.97
revision=3
wrksrc="${pkgname}-${version}.1"
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=44f5a05937648a6526ba99354555d7d15f2dd392e55d3436f6746da6f6c35982
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)&/g' \
Makefile.in
}
pre_build() {
export MORECFLAGS="$CFLAGS"
}
do_install() {
make prefix=${DESTDIR}/usr install
}