aports/testing/fio/APKBUILD
Henrik Riomar 9f181dd542 testing/fio: upgrade to 3.13
* Enable the test suite
 * Build with numa support
 * Build with libaio support
2019-03-05 17:34:07 +01:00

47 lines
1018 B
Plaintext

# Contributor: wener <wenermail@gmail.com>
# Maintainer: wener <wenermail@gmail.com>
pkgname=fio
pkgver=3.13
pkgrel=0
pkgdesc="Flexible I/O Tester"
url="https://github.com/axboe/fio"
arch="all"
license="GPL-2.0"
makedepends="linux-headers zlib-dev coreutils py-sphinx libaio-dev"
case "$CARCH" in
arm*)
# no numactl-dev for arm
;;
*)
makedepends="$makedepends numactl-dev"
;;
esac
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/axboe/fio/archive/fio-$pkgver.tar.gz"
builddir="$srcdir/fio-$pkgname-$pkgver"
build() {
cd "$builddir"
./configure --prefix=/usr
make
}
check() {
cd "$builddir"
make test
}
# needed to handle fio-fio-<version> directory name
doc() {
cd "$builddir"
mkdir -p "$subpkgdir/usr"
mv "$pkgdir/usr/man" "$subpkgdir/usr"
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="f3ed96bbcd16d326db331542147723f2f2d856241443a59bcd5c7f38b8ff496e16409051d7cf25571b7deb17c2f88bb1acf4199685d932a8883a40d95216a70c fio-3.13.tar.gz"