aboutsummaryrefslogtreecommitdiffstats
path: root/community/fio/APKBUILD
blob: 2ad8394953ed11256bae817683328bae5817aca2 (plain) (blame)
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
# Contributor: wener <wenermail@gmail.com>
# Maintainer: wener <wenermail@gmail.com>
pkgname=fio
pkgver=3.13
pkgrel=1
pkgdesc="Flexible I/O Tester"
url="https://github.com/axboe/fio"
arch="all"
license="GPL-2.0"
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
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	mv "$pkgdir"/usr/man "$pkgdir"/usr/share
}

sha512sums="f3ed96bbcd16d326db331542147723f2f2d856241443a59bcd5c7f38b8ff496e16409051d7cf25571b7deb17c2f88bb1acf4199685d932a8883a40d95216a70c  fio-3.13.tar.gz"