core/asciidoc/PKGBUILD
Phil d0c9bc2edf filesystem: bump to 2011.11.0
initscripts: dito
linux-firmware: update firmwares
mkinitcpio: bump to 0.7.5
udev: bump to 174 - update rules
2011-11-01 10:22:29 +00:00

53 lines
1.7 KiB
Bash

pkgname=asciidoc
pkgver=8.6.6
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'
'dblatex: pdf generation'
'fop: alternative pdf generation'
'lynx: text generation'
'w3m: text generation (alternative to lynx)')
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('44b872d9c300ffa5a8fe8b3c4d10957c')
build() {
cd ${pkgname}-${pkgver}
# python2 fix
for file in asciidocapi.py a2x.py asciidoc.py filters/music/music2png.py filters/latex/latex2png.py \
filters/code/code-filter.py filters/graphviz/graphviz2png.py; do
sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file
done
sed -i -e 's_sys:python_sys:python2_g' -e 's_sys3:python_sys3:python2_g' xhtml11.conf
sed -i 's_sys:python_sys:python2_g' xhtml11-quirks.conf
./configure \
--prefix=/usr \
--sysconfdir=/etc
}
package() {
cd ${pkgname}-${pkgver}
make install DESTDIR=${pkgdir}
install -Dm644 asciidocapi.py \
${pkgdir}/usr/lib/python2.7/site-packages/asciidocapi.py
install -Dm644 vim/syntax/asciidoc.vim \
${pkgdir}/usr/share/vim/vimfiles/syntax/asciidoc.vim
install -Dm644 vim/ftdetect/asciidoc_filetype.vim \
${pkgdir}/usr/share/vim/vimfiles/ftdetect/asciidoc.vim
# fix FS#21579 - [asciidoc] 8.6.2-2 "asciidoc" table style doesn't work (mismatched python version)
sed -i 's/python/python2/' \
${pkgdir}/etc/asciidoc/asciidoc.conf
}