# Contributor: wener # Maintainer: wener pkgname=fio pkgver=3.24 pkgrel=0 pkgdesc="Flexible I/O Tester" url="https://github.com/axboe/fio" arch="all" license="GPL-2.0-only" makedepends="linux-headers zlib-dev coreutils libaio-dev" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/axboe/fio/archive/fio-$pkgver.tar.gz" builddir="$srcdir/fio-$pkgname-$pkgver" case "$CARCH" in arm*) ;; # no numactl-dev for arm *) makedepends="$makedepends numactl-dev" ;; esac build() { ./configure --prefix=/usr make T_TEST_PROGS= } check() { make test } package() { make DESTDIR="$pkgdir" install mv "$pkgdir"/usr/man "$pkgdir"/usr/share mkdir -p "$pkgdir"/usr/share/doc/$pkgname for i in README REPORTING-BUGS MORAL-LICENSE; do cp -a "$builddir/$i" "$pkgdir/usr/share/doc/$pkgname" done } sha512sums="95e4f14a9ea945ca209910ca2ecb05a814ccd973394e691b4dc5cdbb25a7d074e564fa4b80c8ce0bcf7fdbe3305b0c011e4c6b6a3881790e3e16e61a845d1b7d fio-3.24.tar.gz"