2014-04-16 05:15:21 +08:00
|
|
|
|
# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
|
2011-09-26 01:56:11 +08:00
|
|
|
|
# Contributor: Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
|
# Contributor: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
|
2010-12-05 20:09:06 +08:00
|
|
|
|
|
|
|
|
|
pkgname=dblatex
|
2014-04-16 05:15:21 +08:00
|
|
|
|
pkgver=0.3.4
|
2011-09-26 01:56:11 +08:00
|
|
|
|
pkgrel=1
|
2010-12-05 20:09:06 +08:00
|
|
|
|
pkgdesc="DocBook (XML and SGML) to DVI, PDF, PostScript converter using latex"
|
2014-04-16 05:15:21 +08:00
|
|
|
|
arch=('x86_64')
|
2010-12-05 20:09:06 +08:00
|
|
|
|
url="http://dblatex.sourceforge.net/"
|
2011-09-26 01:56:11 +08:00
|
|
|
|
license=(GPL)
|
|
|
|
|
depends=('docbook-xml' 'docbook-xsl' 'latex-epic' 'libxslt' 'python2' 'texlive-core' 'texlive-htmlxml' 'texlive-latexextra')
|
2014-04-16 05:15:21 +08:00
|
|
|
|
source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.bz2"
|
|
|
|
|
dblatex-0.3.4-build-fix.patch)
|
|
|
|
|
|
|
|
|
|
md5sums=('a511a2eaa55757b341e4c46353c5c681'
|
|
|
|
|
'b047ef70faa39cdab89c89ac04d02b2f')
|
2011-09-26 01:56:11 +08:00
|
|
|
|
|
|
|
|
|
package() {
|
|
|
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
|
|
2014-04-16 05:15:21 +08:00
|
|
|
|
patch -Np0 -i ../dblatex-0.3.4-build-fix.patch
|
|
|
|
|
|
2011-09-26 01:56:11 +08:00
|
|
|
|
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
|
2010-12-05 20:09:06 +08:00
|
|
|
|
|
2011-09-26 01:56:11 +08:00
|
|
|
|
# Texlive fix. Without it, ‘ghc’ package documentation won’t 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
|
2010-12-05 20:09:06 +08:00
|
|
|
|
}
|