aboutsummaryrefslogtreecommitdiffstats
path: root/main/fstrm/APKBUILD
blob: 94de5dfb08914affb3540d0b177aefcef0496ddc (plain) (blame)
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
45
46
47
48
49
50
51
52
# Contributor: tcely <tcely@users.noreply.github.com>
# Maintainer: tcely <fstrm+aports@tcely.33mail.com>
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"