aboutsummaryrefslogtreecommitdiffstats
path: root/community/stress-ng/APKBUILD
blob: 4dd76d3b99c446d37d5cd8f37abc9ac0499a0f20 (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
# Contributor: Olliver Schinagl <oliver@schinagl.nl>
# Maintainer: Olliver Schinagl <oliver@schinagl.nl>
pkgname=stress-ng
pkgver=0.11.21
pkgrel=0
pkgdesc="stress-ng will stress test a computer system in various selectable ways"
url="https://kernel.ubuntu.com/~cking/stress-ng/"
arch="all !mips !mips64"
license="GPL-2.0-or-later"
options="!check" # tests are not portable
makedepends="
	libaio-dev
	libbsd-dev
	linux-headers
	lksctp-tools-dev
	zlib-dev
	"
subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch"
source="https://kernel.ubuntu.com/~cking/tarballs/stress-ng/stress-ng-$pkgver.tar.xz"

build() {
	make
}

package() {
	make DESTDIR="$pkgdir" \
		JOBDIR="/usr/share/doc/$pkgname/example-jobs/" install
}

bashcomp() {
	depends=""
	pkgdesc="Bash completions for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel bash-completion"

	amove usr/share/bash-completion/completions
}

sha512sums="ec41d57f1d58150efc5db5cf96d8b2d8f6f2453cce2f5b2275b8cacb68fad6acfe7fe3004326413ab4ee02098a340938a3cf04404141f1310a05e07abaf7b500  stress-ng-0.11.21.tar.xz"