# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=asciinema pkgver=2.3.0 pkgrel=0 pkgdesc="Command line recorder for the asciinema.org service" url="https://github.com/asciinema/asciinema" arch="all" license="GPL-3.0-or-later" depends="python3 ncurses" makedepends="py3-setuptools py3-wheel py3-gpep517 py3-installer" checkdepends="py3-pytest" subpackages="$pkgname-doc $pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/asciinema/asciinema/archive/v$pkgver.tar.gz" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/asciinema-$pkgver-py3-none-any.whl install -Dm644 man/asciinema.1 "$pkgdir/usr/share/man/man1/asciinema.1" } sha512sums=" 09951d96938faaf71a5b71f5a514ffacb32be224883691aec7fb549ad5dd4d0eb0a83c06ec23f81c36224fa028f0351decb7d82288b716a6453cbf00ad373845 asciinema-2.3.0.tar.gz "