summaryrefslogtreecommitdiff
path: root/community/bonnie++/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/bonnie++/PKGBUILD')
-rw-r--r--community/bonnie++/PKGBUILD18
1 files changed, 8 insertions, 10 deletions
diff --git a/community/bonnie++/PKGBUILD b/community/bonnie++/PKGBUILD
index f45a04241..cfafec7c9 100644
--- a/community/bonnie++/PKGBUILD
+++ b/community/bonnie++/PKGBUILD
@@ -3,19 +3,17 @@
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=bonnie++
-pkgver=1.03e
-pkgrel=7
+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++/$pkgname-$pkgver.tgz move_away_from_sbin.patch)
-sha256sums=('cb3866116634bf65760b6806be4afa7e24a1cad6f145c876df8721f01ba2e2cb'
- 'c100df652c26f38c950baaf3fe25a74d51ba830066f9d02d273cbb5fc5660814')
-
+source=(http://www.coker.com.au/bonnie++/experimental/$pkgname-$pkgver.tgz)
+md5sums=('d6cf9703242998b2ddc2d875b028b3c6')
build() {
- cd $srcdir/${pkgname}-${pkgver}
+ cd $srcdir/${pkgname}-${pkgver}.1
./configure --prefix=/usr
sed -i "s:CFLAGS=-O2 -DNDEBUG \$(WFLAGS) \$(MORECFLAGS):CFLAGS=${CFLAGS}:" Makefile
@@ -23,13 +21,13 @@ build() {
}
package() {
- cd $srcdir/${pkgname}-${pkgver}
+ cd $srcdir/${pkgname}-${pkgver}.1
# https://www.archlinux.org/todo/move-files-to-usrbin-if-possible/
- patch -Np1 -i $srcdir/move_away_from_sbin.patch
+ sed -i 's/sbin/bin/' Makefile
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
+ install -Dm644 $srcdir/$pkgname-$pkgver.1/readme.html $pkgdir/usr/share/doc/bonnie++/readme.html
}