blob: a508d42a7e99da5be798f7c9e1fd64ec661cf122 (
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
|
# Maintainer: Hao Long <imlonghao@archlinuxcn.org>
_name=rich
pkgname=python-rich
pkgver=5.2.1
pkgrel=1
pkgdesc="Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal"
arch=(any)
url="https://github.com/willmcgugan/rich"
license=('MIT')
depends=('python-colorama'
'python-pygments'
'python-typing_extensions'
'python-commonmark')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('d791263dc505b635b75249dfc1991510d7eabb27047652e3209e98384365c9c9')
build() {
cd "$srcdir/$_name-$pkgver"
python3 setup.py build
}
package() {
cd "$srcdir/$_name-$pkgver"
python3 setup.py install --root=$pkgdir --optimize=1 --skip-build
# make sure we don't install annoying files
local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
rm -rf "$pkgdir/$_site_packages/tests/"
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
|