summaryrefslogtreecommitdiff
path: root/community/bonnie++/PKGBUILD
blob: cfafec7c9fc471f290891ec24b7a04e836880795 (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
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
}