desktop/dblatex/PKGBUILD

27 lines
1.1 KiB
Bash
Raw Normal View History

pkgname=dblatex
2017-04-06 23:52:06 +08:00
pkgver=0.3.10
2016-08-20 00:18:48 +08:00
pkgrel=1
pkgdesc="DocBook (XML and SGML) to DVI, PDF, PostScript converter using latex"
2014-04-16 05:15:21 +08:00
arch=('x86_64')
2015-07-15 07:23:38 +08:00
url="https://pypi.python.org/pypi/dblatex"
2011-09-26 01:56:11 +08:00
license=(GPL)
2016-03-14 18:40:58 +08:00
depends=('docbook-xml' 'docbook-xsl' 'libxslt' 'python2' 'texlive-core' 'texlive-htmlxml' 'texlive-latexextra'
'texlive-pictures')
2016-08-20 00:18:48 +08:00
source=("http://downloads.sourceforge.net/project/dblatex/dblatex/dblatex-${pkgver}/dblatex-${pkgver}.tar.bz2")
2017-04-06 23:52:06 +08:00
sha512sums=('33a5ee3d23d3b9a1576be248a312ca741ea7cb629334a98fb6cb49e0f0f932334506ea934312de04ec645c86ec52699687bd2574b1802d3c23815b44c8514b7b')
2011-09-26 01:56:11 +08:00
package() {
2015-07-18 05:29:48 +08:00
cd $pkgname-$pkgver
2014-04-16 05:15:21 +08:00
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
2011-09-26 01:56:11 +08:00
# 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
}