blob: e7ab081920407688bb304d168f25156b26c638f9 (
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
|
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
# Contributor: Chris Brannon <cmbrannon79@gmail.com>
# Contributor: Geoffroy Carrier <geoffroy@archlinux.org>
# Contributor: Dan McGee <dan@archlinux.org>
# Contributor: Jaroslaw Rosiek <philosoph@interia.pl>
# Contributor: Darwin Bautista <djclue917@gmail.com>
pkgname=asciidoc
pkgver=8.6.3
pkgrel=1
pkgdesc="Text document format for short documents, articles, books and UNIX man pages"
arch=('any')
url="http://www.methods.co.nz/asciidoc/"
license=('GPL')
depends=('python2' 'libxslt' 'docbook-xsl')
optdepends=('lilypond: music-filter'
'imagemagick: music-filter (used in conjunction with lilypond)'
'source-highlight: source-highlight-filter'
'fop: pdf generation'
'lynx: text generation'
'w3m: text generation (alternative to lynx)')
source=(http://downloads.sourceforge.net/asciidoc/asciidoc-${pkgver}.tar.gz)
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr --sysconfdir=/etc || return 1
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make install DESTDIR="${pkgdir}" || return 1
install -Dm644 asciidocapi.py ${pkgdir}/usr/lib/python2.7/site-packages/asciidocapi.py
find "$pkgdir/" -name '*.py' | \
xargs sed -i "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|"
}
md5sums=('1ef39786ee1b4c8a788584e73db2c55a')
|