PKGBUILDs/extra/bonnie++/PKGBUILD
2009-10-09 21:23:22 -05:00

25 lines
745 B
Bash

# $Id: PKGBUILD 27576 2009-02-23 03:56:06Z eric $
# Maintainer: eric <eric@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=bonnie++
pkgver=1.03e
pkgrel=1
pkgdesc="Bonnie++ is based on the Bonnie hard drive benchmark by Tim Bray"
arch=(i686 x86_64)
url="http://www.coker.com.au/bonnie++/"
license=('GPL')
depends=('gcc' 'perl')
source=(http://www.coker.com.au/bonnie++/$pkgname-$pkgver.tgz)
md5sums=('750aa5b5051263a99c6c195888c74968')
build() {
cd $srcdir/$pkgname-$pkgver
./configure --prefix=/usr || return 1
/bin/sed -i "s:CFLAGS=-O2 -DNDEBUG \$(WFLAGS) \$(MORECFLAGS):CFLAGS=${CFLAGS}:" \
Makefile || return 1
make || return 1
make prefix=$pkgdir/usr install || return 1
}
# vim: ts=2 sw=2 et ft=sh