# Contributor: Katie Holly <holly@fuslvz.ws>
# Maintainer: Katie Holly <holly@fuslvz.ws>
pkgname=mbuffer
pkgver=20180318
pkgrel=0
pkgdesc="mbuffer buffers I/O operations and displays the throughput rate"
url="http://www.maier-komor.de/mbuffer.html"
arch="all"
license="GPL-3.0-only"
depends=""
makedepends="linux-headers libressl-dev"
install=""
subpackages="$pkgname-doc"
source="
	http://www.maier-komor.de/software/mbuffer/mbuffer-$pkgver.tgz
	"

builddir="$srcdir"/mbuffer-$pkgver

build() {
	cd "$builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	cd "$builddir"
	make check TESTTREE=./
}

package() {
	cd "$builddir"
	make -j1 DESTDIR="$pkgdir" install
}

sha512sums="ac71876aa0bea3acce8ea00c3848783b752991a0e60ebc4245277fd435c2c9e08c79cc5f47c996e590e711ca1bd652ded075c24ca820efe845f578b106c43594  mbuffer-20180318.tgz"
