summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
Diffstat (limited to 'libre')
-rw-r--r--libre/asciidoc/PKGBUILD65
1 files changed, 28 insertions, 37 deletions
diff --git a/libre/asciidoc/PKGBUILD b/libre/asciidoc/PKGBUILD
index 7a84adca4..9ee664824 100644
--- a/libre/asciidoc/PKGBUILD
+++ b/libre/asciidoc/PKGBUILD
@@ -1,65 +1,56 @@
-# $Id: PKGBUILD 118968 2014-09-14 16:00:30Z bluewind $
+# Maintainer: Andreas Grapentin <andreas@grapentin.org>
+# Maintainer (Arch): Florian Pritz <flo@xinu.at>
+# Contributor: André Silva <emulatorman@hyperbola.info>
# Contributor (Arch): Chris Brannon <cmbrannon79@gmail.com>
# Contributor (Arch): Geoffroy Carrier <geoffroy@archlinux.org>
# Contributor (Arch): Dan McGee <dan@archlinux.org>
# Contributor (Arch): Jaroslaw Rosiek <philosoph@interia.pl>
# Contributor (Arch): Darwin Bautista <djclue917@gmail.com>
# Contributor (Arch): Daniel J Griffiths <ghost1227@archlinux.us>
-# Maintainer (Arch): Florian Pritz <flo@xinu.at>
-# Maintainer: André Silva <emulatorman@hyperbola.info>
pkgname=asciidoc
-pkgver=8.6.9
-pkgrel=3.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')
+
+pkgver=8.6.10
+pkgrel=1.parabola1
+arch=(any)
+
+pkgdesc="Text document format for short documents, articles, books and UNIX man pages, without nonfree fop recommendation"
+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')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/$pkgver.tar.gz")
+sha256sums=('9e52f8578d891beaef25730a92a6e723596ddbd07bfe0d2a56486fcf63a0b983')
prepare() {
- cd ${pkgname}-${pkgver}
+ 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}
+ # fix missing configure script in release tarball
+ autoreconf --install
./configure \
--prefix=/usr \
--sysconfdir=/etc
+
+ # python2 fix
+ for file in *.py filters/*/*.py; do
+ sed -i 's_#!/usr/bin/env python$_#!/usr/bin/env python2_' $file
+ done
+ sed -i 's_ python_ python2_' Makefile
}
package() {
- cd ${pkgname}-${pkgver}
+ cd $pkgname-$pkgver
- make install DESTDIR=${pkgdir}
- make docs DESTDIR=${pkgdir}
+ make install DESTDIR=$pkgdir
+ make docs 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
+ $pkgdir/usr/lib/python2.7/site-packages/asciidocapi.py
}