# Contributor: Kevin Wang # Maintainer: Kevin Wang pkgname=librist pkgver=0.2.7 pkgrel=0 pkgdesc="Reliable Internet Stream Transport (RIST)" url="https://www.rist.tv/" arch="all" license="BSD-2-Clause" makedepends="meson linux-headers cjson-dev mbedtls-dev" checkdepends="cmocka-dev" subpackages="$pkgname-progs $pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://code.videolan.org/rist/librist/-/archive/v$pkgver/librist-v$pkgver.tar.gz" builddir="$srcdir/librist-v$pkgver" build() { abuild-meson build meson compile -C build } check() { case "$CARCH" in ppc64le|arm*|s390x|aarch64) # tests fail ;; *) meson test --no-rebuild --print-errorlogs -C build ;; esac } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C build } progs() { pkgdesc="Tools for working with RIST" depends="" amove usr/bin } sha512sums=" fa4e1aea75206781d062d350410e2f4e095e52191d22fb1882ec779ca13845294d00b5e4f06f04573eb8945ec280c304c96c1607622e978a241c5086b7d0a831 librist-0.2.7.tar.gz "