Date: Saturday, June 11, 2022 @ 08:05:06 Author: arojas Revision: 1232158
Update to 2.2.0 Modified: asciinema/trunk/PKGBUILD ----------+ PKGBUILD | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-06-11 08:05:02 UTC (rev 1232157) +++ PKGBUILD 2022-06-11 08:05:06 UTC (rev 1232158) @@ -2,15 +2,15 @@ # Contributor: Marcin Kulik <[email protected]> pkgname=asciinema -pkgver=2.1.0 -pkgrel=2 +pkgver=2.2.0 +pkgrel=1 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 +depends=(python python-setuptools python-wheel python-build python-installer) +makedepends=(git) +source=('git+https://github.com/asciinema/asciinema#commit=f3af768f569e0b363bcced11d266d4ed857e21e7') # tag: v2.1.0 b2sums=(SKIP) prepare() { @@ -17,10 +17,15 @@ echo -e '#!/bin/sh\n/usr/bin/python -m asciinema "$@"' > "$pkgname/asciinema.sh" } +build() { + cd $pkgname + python -m build --wheel --no-isolation +} + package() { cd $pkgname install -Dm755 -t "$pkgdir/usr/bin" asciinema.sh - python setup.py install --root="$pkgdir" --optimize=1 + python -m installer --destdir="$pkgdir" dist/*.whl } # getver: raw.githubusercontent.com/asciinema/asciinema/master/asciinema/__init__.py
