# Contributor: Corrado Primier <bardo@aur.archlinux.org>
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=stress
pkgver=1.0.4
pkgrel=6
pkgdesc="A tool that stress tests your system (CPU, memory, I/O, disks)"
arch=('x86_64')
url="https://people.seas.harvard.edu/~apw/stress/"
license=('GPL')
options=('!emptydirs')
source=("https://sources.archlinux.org/other/community/stress/${pkgname}-${pkgver}.tar.gz"{,.sign})
md5sums=('890a4236dd1656792f3ef9a190cf99ef'
         'SKIP')
validpgpkeys=(BB1838728F40B7E63BFCD67AE52707E90485EFCD)

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    ./configure --prefix=/usr --mandir=/usr/share/man
    make
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    make DESTDIR="${pkgdir}" install
}
