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