blob: 2bd39fe26f69013d3f1cfd3c9261d675d43585ba (
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
|
# Maintainer: Yann Büchau <nobodyinperson at posteo de>
# Contributor: Frederik Schwan <freswa at archlinux dot org>
# Contributor: Hao Long <imlonghao@archlinuxcn.org>
pkgname=python-rich-rst-git
pkgver=1.1.7.r4.ge36049c
pkgrel=1
pkgdesc='Allows python-rich to print a reStructuredText document in a rich format'
arch=(any)
url='https://github.com/wasi-master/rich-rst'
license=('MIT')
depends=('python-rich' 'python-docutils')
makedepends=('python-pip')
conflicts=("${pkgname%-git}")
provides=("${pkgname%-git}")
source=("${pkgname%-git}::git+$url")
md5sums=('SKIP')
pkgver () {
cd "$srcdir/${pkgname%-git}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}
build () {
cd "$srcdir/${pkgname%-git}"
python setup.py build
}
package () {
cd "$srcdir/${pkgname%-git}"
export PYTHONHASHSEED=0
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
|