# Contributor: Olliver Schinagl <oliver@schinagl.nl>
# Maintainer: Olliver Schinagl <oliver@schinagl.nl>
pkgname=stress-ng
pkgver=0.18.08
pkgrel=0
pkgdesc="stress-ng will stress test a computer system in various selectable ways"
url="https://github.com/ColinIanKing/stress-ng"
arch="all"
license="GPL-2.0-or-later"
options="!check" # tests are not portable
makedepends="
	judy-dev
	libaio-dev
	libbsd-dev
	linux-headers
	lksctp-tools-dev
	zlib-dev
	"
subpackages="$pkgname-doc $pkgname-bash-completion"
source="$pkgname-$pkgver.tar.gz::https://github.com/ColinIanKing/stress-ng/archive/refs/tags/V$pkgver.tar.gz"

build() {
	export CFLAGS="${CFLAGS/-Os/-O2}"
	make
}

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

sha512sums="
c1f488c1961e0e62e211d1d5c3ed9f2e5577ef7eaf18a5a15e5e501b5a5043e696bdb0400abd90c4f2a25ca75bd5d37f16bda5d6603d8ecfb13f0d6cad63bd36  stress-ng-0.18.08.tar.gz
"
