diff options
author | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
commit | 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch) | |
tree | 03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/bonnie++/PKGBUILD | |
parent | e445a313723389ba9ee1fded025c567dae5b21ea (diff) |
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/bonnie++/PKGBUILD')
-rw-r--r-- | community/bonnie++/PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/community/bonnie++/PKGBUILD b/community/bonnie++/PKGBUILD new file mode 100644 index 000000000..cfafec7c9 --- /dev/null +++ b/community/bonnie++/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: jelle van der Waa <jelle@vdwaa.nl> +# Contributor: eric <eric@archlinux.org> +# Contributor: Tom Newsom <Jeepster@gmx.co.uk> + +pkgname=bonnie++ +pkgver=1.97 +pkgrel=1 +pkgdesc="Based on the Bonnie hard drive benchmark by Tim Bray" +arch=('i686' 'x86_64') +url="http://www.coker.com.au/bonnie++/" +license=('GPL') +depends=('perl') +source=(http://www.coker.com.au/bonnie++/experimental/$pkgname-$pkgver.tgz) +md5sums=('d6cf9703242998b2ddc2d875b028b3c6') +build() { + cd $srcdir/${pkgname}-${pkgver}.1 + + ./configure --prefix=/usr + sed -i "s:CFLAGS=-O2 -DNDEBUG \$(WFLAGS) \$(MORECFLAGS):CFLAGS=${CFLAGS}:" Makefile + make +} + +package() { + cd $srcdir/${pkgname}-${pkgver}.1 + + # https://www.archlinux.org/todo/move-files-to-usrbin-if-possible/ + sed -i 's/sbin/bin/' Makefile + make prefix="${pkgdir}/usr" install + + install -d $pkgdir/usr/share/doc/bonnie++ + install -Dm644 $srcdir/$pkgname-$pkgver.1/readme.html $pkgdir/usr/share/doc/bonnie++/readme.html +} + |