[arch-commits] Commit in bonnie++/repos (2 files)
Leonidas Spyropoulos
artafinde at gemini.archlinux.org
Fri Jan 21 13:11:26 UTC 2022
Date: Friday, January 21, 2022 @ 13:11:26
Author: artafinde
Revision: 1112005
archrelease: copy trunk to community-testing-x86_64
Added:
bonnie++/repos/community-testing-x86_64/
bonnie++/repos/community-testing-x86_64/PKGBUILD
(from rev 1112004, bonnie++/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: bonnie++/repos/community-testing-x86_64/PKGBUILD (from rev 1112004, bonnie++/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2022-01-21 13:11:26 UTC (rev 1112005)
@@ -0,0 +1,36 @@
+# Maintainer: jelle van der Waa <jelle at vdwaa.nl>
+# Contributor: eric <eric at archlinux.org>
+# Contributor: Tom Newsom <Jeepster at gmx.co.uk>
+
+pkgname=bonnie++
+pkgver=2.00a
+pkgrel=1
+pkgdesc="Based on the Bonnie hard drive benchmark by Tim Bray"
+arch=('x86_64')
+url="https://www.coker.com.au/bonnie++/"
+license=('GPL')
+depends=('perl')
+source=(https://www.coker.com.au/$pkgname/$pkgname-$pkgver.tgz)
+sha256sums=('a8d33bbd81bc7eb559ce5bf6e584b9b53faea39ccfb4ae92e58f27257e468f0e')
+build() {
+ cd "$srcdir"/${pkgname}-${pkgver}
+
+ ./configure --prefix=/usr
+ sed \
+ -e "s:CFLAGS=-O2 -DNDEBUG \$(WFLAGS) \$(MORECFLAGS):CFLAGS=-std=c++14 ${CFLAGS}:" \
+ -e "s:LINK=g++:LINK=g++ ${LDFLAGS}:" \
+ -i Makefile
+ make V=1
+}
+
+package() {
+ cd "$srcdir"/${pkgname}-${pkgver}
+
+ # 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/readme.html "$pkgdir"/usr/share/doc/bonnie++/readme.html
+}
+
More information about the arch-commits
mailing list