# Template file for 'bonnie++' pkgname=bonnie++ version=1.98 revision=1 build_style=gnu-configure short_desc="Hard Drive and Filesystem benchmark utility" maintainer="Orphaned " license="GPL-2.0-only" homepage="http://www.coker.com.au/bonnie++/" distfiles="http://www.coker.com.au/bonnie++/bonnie++-${version}.tgz" checksum=6e0bcbc08b78856fd998dd7bcb352d4615a99c26c2dc83d5b8345b102bad0b04 export CXXFLAGS="-std=c++14" post_extract() { vsed -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' \ -e '/$(CXX)/s/$/ $(CXXFLAGS)/' \ Makefile.in } pre_build() { export MORECFLAGS="$CFLAGS" } do_install() { make prefix=${DESTDIR}/usr install }