# Contributor: tcely # Maintainer: tcely pkgname="fstrm" pkgver="0.5.0" pkgrel=0 pkgdesc="Frame Streams implementation in C" url="https://github.com/farsightsec/fstrm" arch="all" # check failure on s390x reported upstream: # https://github.com/farsightsec/fstrm/issues/58 license="MIT" depends="" depends_dev="libevent-dev" checkdepends="findutils" makedepends="$depends_dev" install="" subpackages="$pkgname-dev $pkgname-doc" source="https://dl.farsightsecurity.com/dist/$pkgname/$pkgname-$pkgver.tar.gz reduce-testruns.patch" build() { cd "$builddir" ./configure \ --build="$CBUILD" \ --host="$CHOST" \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man make } _cat_found_file() { local _rc="$?" find -name "$1" -type f -ls -printf '%P {{{\n' -exec cat -v -n '{}' ';' -printf '}}} %P\n' return "$_rc" } check() { cd "$builddir" make check || _cat_found_file 'test-suite.log' } package() { cd "$builddir" make -j1 DESTDIR="$pkgdir" install } sha512sums="cc60d8974d73d4f5327c46fe642151c88cf8d670ac9bb5db6cb5990b6c0995a0e09c9ae1a6c86ecbfd35fe03664b5402becd68bc6e81e83e9f4b84668d866f25 fstrm-0.5.0.tar.gz 1c687ee7741fb20a571c3d7d3fb9a1cf09709d83d66d788eb09835750ee2313aa565f74d35a9cdece2154e1b8c41c68b268ca8f5bc33f8d14550ebe46880d550 reduce-testruns.patch"