APKBUILD 850 Bytes
Newer Older
杨文 陈's avatar
杨文 陈 committed
1 2 3
# Contributor: wener <wenermail@gmail.com>
# Maintainer: wener <wenermail@gmail.com>
pkgname=fio
Leo's avatar
Leo committed
4 5
pkgver=3.15
pkgrel=0
杨文 陈's avatar
杨文 陈 committed
6 7 8 9
pkgdesc="Flexible I/O Tester"
url="https://github.com/axboe/fio"
arch="all"
license="GPL-2.0"
10
makedepends="linux-headers zlib-dev coreutils libaio-dev"
杨文 陈's avatar
杨文 陈 committed
11 12 13 14
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/axboe/fio/archive/fio-$pkgver.tar.gz"
builddir="$srcdir/fio-$pkgname-$pkgver"

15 16 17 18 19
case "$CARCH" in
	arm*) ;; # no numactl-dev for arm
	*) makedepends="$makedepends numactl-dev" ;;
esac

杨文 陈's avatar
杨文 陈 committed
20 21 22 23 24
build() {
	./configure --prefix=/usr
	make
}

Henrik Riomar's avatar
Henrik Riomar committed
25 26
check() {
	make test
杨文 陈's avatar
杨文 陈 committed
27
}
Henrik Riomar's avatar
Henrik Riomar committed
28 29 30

package() {
	make DESTDIR="$pkgdir" install
31
	mv "$pkgdir"/usr/man "$pkgdir"/usr/share
Henrik Riomar's avatar
Henrik Riomar committed
32 33
}

Leo's avatar
Leo committed
34
sha512sums="2a0c91247fb89a1b23b60ddfa9a4d283fe8434e919292fb02a56cb1a0303f0794e7c1af450ba2180669956bd1f338715f0b34d2bb80c304e6bc773ab48666baa  fio-3.15.tar.gz"