From 868da4da691a9aee89d16793c58e6cd91ebfd99e Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Mon, 18 May 2015 23:43:08 -0300 Subject: asciidoc: add new package to [libre] -> https://labs.parabola.nu/issues/717 --- libre/asciidoc/PKGBUILD | 64 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 libre/asciidoc/PKGBUILD (limited to 'libre') diff --git a/libre/asciidoc/PKGBUILD b/libre/asciidoc/PKGBUILD new file mode 100644 index 000000000..8ef3debd3 --- /dev/null +++ b/libre/asciidoc/PKGBUILD @@ -0,0 +1,64 @@ +# $Id: PKGBUILD 118968 2014-09-14 16:00:30Z bluewind $ +# Contributor (Arch): Chris Brannon +# Contributor (Arch): Geoffroy Carrier +# Contributor (Arch): Dan McGee +# Contributor (Arch): Jaroslaw Rosiek +# Contributor (Arch): Darwin Bautista +# Contributor (Arch): Daniel J Griffiths +# Maintainer (Arch): Florian Pritz +# Maintainer: André Silva + +pkgname=asciidoc +pkgver=8.6.9 +pkgrel=2.parabola1 +pkgdesc='Text document format for short documents, articles, books and UNIX man pages, without nonfree fop recommendation' +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' + 'lynx: text generation' + 'w3m: text generation (alternative to lynx)') +source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz") +md5sums=('c59018f105be8d022714b826b0be130a') + +prepare() { + 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 + #sed -i -e 's/{python}/{python2}/g' \ + #-e 's#{language@python:py:#{language@python2:py:#' \ + #filters/source/source-highlight-filter.conf \ + #html5.conf xhtml11.conf xhtml11-quirks.conf + #sed -i -e "s#'python'#'python2'#g" filters/code/code-filter.py +} + +build() { + cd ${pkgname}-${pkgver} + + ./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 + + # 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 +} -- cgit v1.2.3