summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fbfa956142bd659e3ef3a23b11285652265d9f9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: GalaxySnail <me+aur@glxys.nl>
# Contributor: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: Caleb Maclennan <caleb@alerque.com>
# Contributor: Marcin Kulik <marcin@asciinema.org>

_pkgname=asciinema
pkgname=python-asciinema
pkgver=2.4.0
pkgrel=1
pkgdesc='Record and share terminal sessions (legacy 2.x Python implementation)'
arch=(any)
url='https://asciinema.org/'
license=(GPL-3.0-only)
conflicts=(asciinema)
provides=(asciinema)
depends=(python)
makedepends=(
  git
  python-setuptools
  python-wheel
  python-build
  python-installer
)
source=("git+https://github.com/asciinema/asciinema#tag=v$pkgver") # tag: v2.4.0
sha256sums=('ad52df52cc18d58477d7eb8d0e9897f3c6834693c3dd13c9b97e0dcc88908685')

build() {
  cd $_pkgname
  python -m build --wheel --no-isolation
}

package() {
  cd $_pkgname
  python -m installer --destdir="$pkgdir" dist/asciinema-$pkgver-py3-none-any.whl
}