aboutsummaryrefslogtreecommitdiffstats
path: root/community/fio/APKBUILD
blob: f9bb494b2023be3e4030f463d6faf28d3c964812 (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
35
36
37
38
39
40
# Contributor: wener <wenermail@gmail.com>
# Maintainer: wener <wenermail@gmail.com>
pkgname=fio
pkgver=3.20
pkgrel=0
pkgdesc="Flexible I/O Tester"
options="!check" # Tests break due to missing drand_r
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="bb8581c5bb03f080de1723fefc1e7f89c90e081123943b7ed3e3cac1062c29f9bd9d7b50df8da769f900e939774e0166232acf9a946f7623edf0a8e7abbf69dc  fio-3.20.tar.gz"