# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=asciinema
pkgver=2.0.0
pkgrel=0
pkgdesc="Command line recorder for asciinema.org service"
url="https://github.com/asciinema/asciinema"
arch="all"
license="GPL-3.0-or-later"
depends="ncurses"
makedepends="python3-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	python3 setup.py build
}

package() {
	cd "$builddir"
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	install -Dm644 man/asciinema.1 "$pkgdir/usr/share/man/man1/asciinema.1"
}

sha512sums="af11134af1e69eabbf5a177000026830d418ed5d91e381f27c0631692bbaae04afc3f1086ea2065c54f49f227f7e575938c69d6d3bc8b5f9f06eca3fe084598e  asciinema-2.0.0.tar.gz"
