blob: aa57bd5ac6185f07e5954a8a5be328e763a5f294 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Maintainer: brent s. <bts[at]square-r00t[dot]net>
validpgpkeys=('748231EBCBD808A14F5E85D28C004C2F93481F6B')
# Bug reports can be filed at https://bugs.square-r00t.net/index.php?project=3
# News updates for packages can be followed at https://devblog.square-r00t.net
# Past maintainer: Joris Steyn <jorissteyn@gmail.com>
# Contributor: TDY <tdy@gmx.com>
pkgname=iozone
pkgver=3.490
_pkgver=${pkgver/./_}
pkgrel=2
pkgdesc="A filesystem benchmark tool"
arch=('any')
url="http://www.iozone.org/"
license=('custom')
depends=('sh')
optdepends=('gnuplot: for generating graph reports')
install=$pkgname.install
source=("http://www.${pkgname}.org/src/current/${pkgname}${_pkgver}.tar"
"${pkgname}${_pkgver}.tar.sig")
sha512sums=('15959cdb0a1f94cbe0063c72666683a5c2d8221dba04c7548ca96ac0ac5edf6118ccd54f1d4fd55151dbad79fc886bdd440a409b7906b4f6c0465c1f770fbcc6'
'SKIP')
build() {
cd "${srcdir}/${pkgname}${_pkgver}/src/current"
[[ "${CARCH}" == 'x86_64' ]] && TARGET='-AMD64'
make linux${TARGET} CFLAGS="${CFLAGS}"
}
package() {
cd "${srcdir}/${pkgname}${_pkgver}/src/current"
_examples=/usr/share/doc/iozone3/examples
install -Dm755 iozone ${pkgdir}/usr/bin/iozone
install -Dm755 fileop ${pkgdir}/usr/bin/fileop
install -Dm755 pit_server ${pkgdir}/usr/bin/pit_server
install -Dm644 ../../docs/$pkgname.1 ${pkgdir}/usr/share/man/man1/$pkgname.1
for i in $(find ${srcdir}/${pkgname}${_pkgver}/docs -type f);
do
mode=$(stat -c "%a %n" ${i} | awk '{print $1}')
fname=$(basename ${i})
install -Dm${mode} ${i} ${pkgdir}/usr/share/doc/${pkgname}/${fname}
done
}
|