desktop/dblatex/PKGBUILD
Adrián Chaves Fernández a9e7a49832 dblatex 0.3.8
2016-08-19 18:19:13 +02:00

27 lines
1.1 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

pkgname=dblatex
pkgver=0.3.8
pkgrel=1
pkgdesc="DocBook (XML and SGML) to DVI, PDF, PostScript converter using latex"
arch=('x86_64')
url="https://pypi.python.org/pypi/dblatex"
license=(GPL)
depends=('docbook-xml' 'docbook-xsl' 'libxslt' 'python2' 'texlive-core' 'texlive-htmlxml' 'texlive-latexextra'
'texlive-pictures')
source=("http://downloads.sourceforge.net/project/dblatex/dblatex/dblatex-${pkgver}/dblatex-${pkgver}.tar.bz2")
sha512sums=('6ef05292fc222cf42bd0501a8a74b7d4becdc68d6bda9e580087d54b5eef86408fe99929d9741173eed503ab129585872136e70a6c0613ea360885c8c258be77')
package() {
cd $pkgname-$pkgver
python2 setup.py install \
--root $pkgdir \
--catalogs=/etc/xml/docbook
# Python 2 fix.
sed -i -e "s,${pkgdir},," -e "s,#!/usr/bin/env python,#!/usr/bin/env python2," $pkgdir/usr/bin/dblatex
# Texlive fix. Without it, ghc package documentation wont compile.
# NOTE: see http://www.haskell.org/pipermail/glasgow-haskell-users/2011-March/020199.html
sed -i -e "s#<xsl:param name=\"texlive.version\">2010</xsl:param>#<xsl:param name=\"texlive.version\">2009</xsl:param>#" $pkgdir/usr/share/$pkgname/xsl/param.xsl
}