diff options
author | Omar Sandoval | 2016-06-06 16:50:23 -0700 |
---|---|---|
committer | Omar Sandoval | 2016-06-06 16:50:23 -0700 |
commit | c77fa715c3e92c0c44e1ee73229ccdf00cc1f772 (patch) | |
tree | 5bf3b41a379f4f79c03d7bcfe6d6330bff7ad3cf /PKGBUILD | |
download | aur-fio-git.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..87f3a40214e9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,54 @@ +# Maintainer: Omar Sandoval <osandov at osandov dot com> + +pkgname=fio-git +_pkgname=fio +pkgver=2.11.r14.gf03189f +pkgrel=1 +pkgdesc='Scriptable I/O tool for storage benchmarks and drive testing' +arch=(i686 x86_64) +url='https://github.com/axboe/fio' +license=(GPL2) +# TODO: enable rdma +depends=(bash libaio python2 numactl glusterfs ceph) +makedepends=(git gtk2) +optdepends=( + 'gtk2: for gfio - fio GUI frontend' + 'gnuplot: generating plots using fio_generate_plots' +) +conflicts=('fio') +provides=('fio') +source=("$_pkgname::git+https://github.com/axboe/fio.git") +sha256sums=('SKIP') + +pkgver() { + cd "$_pkgname" + git describe --abbrev=7 --long | sed 's/^fio-//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd "$_pkgname" + + sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' -i tools/plot/fio2gnuplot +} + +build() { + cd "$_pkgname" + ./configure --enable-gfio --extra-cflags="$CFLAGS" + make +} + +package() { + cd "$_pkgname" + make DESTDIR="$pkgdir" prefix=/usr mandir=/usr/share/man install + + # documentation + install -dm755 "$pkgdir/usr/share/doc/$_pkgname" + install -m644 HOWTO README REPORTING-BUGS SERVER-TODO "$pkgdir/usr/share/doc/$_pkgname" + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$_pkgname/COPYING" + + # examples + install -dm755 "$pkgdir/usr/share/doc/$_pkgname/examples" + install -m644 examples/* "$pkgdir/usr/share/doc/$_pkgname/examples" +} + +# vim:set ts=2 sw=2 et: |