# Contributor: William Pitcock <nenolod@dereferenced.org> # Maintainer: Henrik Riomar <henrik.riomar@gmail.com> setvar pkgname = 'ioping' setvar pkgver = '1.0' setvar pkgrel = '1' setvar pkgdesc = ""A simple disk i/o latency measurement tool"" setvar url = ""https://github.com/koct9i/ioping"" setvar arch = ""all"" setvar license = ""GPL3+"" setvar depends = """" setvar depends_dev = """" setvar makedepends = ""$depends_dev linux-headers"" setvar install = """" setvar subpackages = ""$pkgname-doc"" setvar source = ""$pkgname-$pkgver.tar.gz::https://github.com/koct9i/ioping/archive/v$pkgver.tar.gz"" setvar _builddir = ""$srcdir"/$pkgname-$pkgver" proc prepare { local i cd $_builddir test $CARCH = "s390x" && sed -i -e 's@./$(BINARY)@./$(BINARY) -C@g' Makefile for i in $source { case (i) { *.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1} } } } proc build { cd $_builddir make || return 1 } proc check { cd $_builddir make test || return 1 } proc package { cd $_builddir make DESTDIR="$pkgdir" PREFIX="/usr" install || return 1 } setvar sha512sums = ""a6763ac800e98c819a74af80634ac723f413ffa183297918389e1e1f5fc83713b683d53b594f5bd20f11d168c21de5da9d42a215d78531ee8b619aff8b9b0b84 ioping-1.0.tar.gz""