desktop/dblatex/PKGBUILD
2014-04-15 21:15:21 +00:00

35 lines
1.3 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.

# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
# Contributor: Giuseppe Calà <jiveaxe@gmail.com>
# Contributor: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
pkgname=dblatex
pkgver=0.3.4
pkgrel=1
pkgdesc="DocBook (XML and SGML) to DVI, PDF, PostScript converter using latex"
arch=('x86_64')
url="http://dblatex.sourceforge.net/"
license=(GPL)
depends=('docbook-xml' 'docbook-xsl' 'latex-epic' 'libxslt' 'python2' 'texlive-core' 'texlive-htmlxml' 'texlive-latexextra')
source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.bz2"
dblatex-0.3.4-build-fix.patch)
md5sums=('a511a2eaa55757b341e4c46353c5c681'
'b047ef70faa39cdab89c89ac04d02b2f')
package() {
cd $srcdir/$pkgname-$pkgver
patch -Np0 -i ../dblatex-0.3.4-build-fix.patch
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
}