blob: 83c333f96f4b1b55daca808d49338b555971fa89 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
|
pkgname=termtosvg-git
pkgver=0.9.0.r0.ge107277
pkgrel=1
pkgdesc='record terminal sessions as svg animations'
url='https://github.com/nbedos/termtosvg'
arch=('any')
license=('BSD')
depends=('python-pyte' 'python-lxml')
makedepends=('git' 'python-setuptools' 'pandoc')
provides=('termtosvg')
conflicts=('termtosvg')
source=('git+https://github.com/nbedos/termtosvg#branch=develop')
sha256sums=('SKIP')
pkgver() {
cd termtosvg
git describe --long --tags | sed -r 's/^v//; s/([^-]*-g)/r\1/; s/-/./g'
}
build() {
cd termtosvg
# There is a Makefile but seems to be intended as a development aid rather
# than a build tool
python setup.py build
# Manually generate the man pages and skip the needless tarballing done in
# the Makefile
pandoc man/termtosvg.md -st man > man/termtosvg.man.1
pandoc man/termtosvg-templates.md -st man > man/termtosvg-templates.man.5
}
check() {
cd termtosvg
python setup.py test
}
package() {
cd termtosvg
python setup.py install --root="$pkgdir" --optimize=1
install -Dm0644 man/termtosvg.man.1 "$pkgdir"/usr/share/man/man1/termtosvg.1
install -Dm0644 man/termtosvg-templates.man.5 "$pkgdir"/usr/share/man/man5/termtosvg-templates.5
install -Dm0644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}
|