blob: 31efb51f4440328c5bfd5e62c826ca0ccbfdd4c1 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer: Christoph Gysin <christoph.gysin@gmail.com>
pkgname=asciidoc-git
_pkgname=asciidoc
pkgver=8.6.9.84.gd919c61
pkgrel=1
pkgdesc='Text document format for short documents, articles, books and UNIX man pages.'
arch=('any')
url='git+http://www.methods.co.nz/asciidoc/'
license=('GPL')
depends=('python2' 'libxslt' 'docbook-xsl')
provides=('asciidoc')
conflicts=('asciidoc')
optdepends=('lilypond: music-filter'
'imagemagick: music-filter (used in conjunction with lilypond)'
'source-highlight: source-highlight-filter'
'dblatex: pdf generation'
'fop: alternative pdf generation'
'lynx: text generation'
'w3m: text generation (alternative to lynx)')
source=('git+https://github.com/asciidoc/asciidoc.git')
sha1sums=('SKIP')
pkgver() {
cd $_pkgname
git describe --tags | sed 's/-/./g;s/^v//'
}
prepare() {
cd $_pkgname
# python2 fix
sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' \
a2x.py \
asciidoc.py \
asciidocapi.py \
filters/code/code-filter.py \
filters/graphviz/graphviz2png.py \
filters/latex/latex2img.py \
filters/music/music2png.py
sed -i 's_python a2x.py_./a2x.py_' \
Makefile.in
}
build() {
cd $_pkgname
autoconf -i
./configure \
--prefix=/usr \
--sysconfdir=/etc
}
package() {
cd $_pkgname
make install DESTDIR=$pkgdir
install -Dm644 asciidocapi.py \
$pkgdir/usr/lib/python2.7/site-packages/asciidocapi.py
}
|