# Contributor: Luca Weiss <luca@lucaweiss.eu>
# Maintainer: Luca Weiss <luca@lucaweiss.eu>
pkgname=fluster
pkgver=0.3.0
pkgrel=0
pkgdesc="Testing framework for decoders conformance"
url="https://github.com/fluendo/fluster"
arch="noarch"
license="LGPL-3.0-or-later"
# optional dependencies for runtime:
# * aom
# * dav1d
# * ffmpeg
# * gstreamer-tools
# * libvpx-utils
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="https://github.com/fluendo/fluster/archive/v$pkgver/fluster-v$pkgver.tar.gz"
options="!check" # no test suite

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
	mkdir -p "$pkgdir"/usr/share/fluster/
	cp -r test_suites "$pkgdir"/usr/share/fluster/
}

sha512sums="
d5fd64f75aefe12d73015254e8cb9e3f3b2b4bdc088c7544d86fa004ac909a8c72b8ed2ff9c25c0eac69ec229f12fe0b8fa1a9685155a56ba64475f9bd757256  fluster-v0.3.0.tar.gz
"
