Date: Friday, December 3, 2021 @ 01:41:32 Author: felixonmars Revision: 1064685
archrelease: copy trunk to community-staging-any Added: asciinema/repos/community-staging-any/ asciinema/repos/community-staging-any/PKGBUILD (from rev 1064684, asciinema/trunk/PKGBUILD) ----------+ PKGBUILD | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) Copied: asciinema/repos/community-staging-any/PKGBUILD (from rev 1064684, asciinema/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2021-12-03 01:41:32 UTC (rev 1064685) @@ -0,0 +1,26 @@ +# Maintainer: Alexander F. Rødseth <xypr...@archlinux.org> +# Contributor: Marcin Kulik <mar...@asciinema.org> + +pkgname=asciinema +pkgver=2.1.0 +pkgrel=2 +pkgdesc='Record and share terminal sessions' +arch=(any) +url='https://asciinema.org/' +license=(GPL3) +depends=(python) +makedepends=(git python-setuptools) +source=('git+https://github.com/asciinema/asciinema#commit=5f958ccc40b04f84341cc0bfafee6d679a8f7c1c') # tag: v2.1.0 +b2sums=(SKIP) + +prepare() { + echo -e '#!/bin/sh\n/usr/bin/python -m asciinema "$@"' > "$pkgname/asciinema.sh" +} + +package() { + cd $pkgname + install -Dm755 -t "$pkgdir/usr/bin" asciinema.sh + python setup.py install --root="$pkgdir" --optimize=1 +} + +# getver: raw.githubusercontent.com/asciinema/asciinema/master/asciinema/__init__.py