summaryrefslogtreecommitdiff
path: root/community/bonnie++/PKGBUILD
blob: 27e176e3759ef33007a2c763bd228ae7b83e8c62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: jelle van der Waa <jelle@vdwaa.nl>
# Contributor: eric <eric@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=bonnie++
pkgver=1.03e
pkgrel=6
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++/$pkgname-$pkgver.tgz)
sha256sums=('cb3866116634bf65760b6806be4afa7e24a1cad6f145c876df8721f01ba2e2cb')

build() {
  cd $srcdir/${pkgname}-${pkgver}

  ./configure --prefix=/usr
  sed -i "s:CFLAGS=-O2  -DNDEBUG \$(WFLAGS) \$(MORECFLAGS):CFLAGS=${CFLAGS}:" Makefile
  make
}

package() {
  cd $srcdir/${pkgname}-${pkgver}

  make prefix="${pkgdir}/usr" install

  install -d $pkgdir/usr/share/doc/bonnie++
  install -Dm644 $srcdir/$pkgname-$pkgver/readme.html $pkgdir/usr/share/doc/bonnie++/readme.html
}