2010-12-05 20:09:06 +08:00
|
|
|
|
pkgname=dblatex
|
2015-08-08 07:57:38 +08:00
|
|
|
|
pkgver=0.3.7
|
|
|
|
|
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')
|
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)
|
|
|
|
|
depends=('docbook-xml' 'docbook-xsl' 'latex-epic' 'libxslt' 'python2' 'texlive-core' 'texlive-htmlxml' 'texlive-latexextra')
|
2015-07-18 05:29:48 +08:00
|
|
|
|
source=("https://pypi.python.org/packages/source/d/dblatex/$pkgname-$pkgver.tar.bz2"
|
2015-08-08 07:57:38 +08:00
|
|
|
|
"dblatex-0.3.5-build-fix.patch")
|
|
|
|
|
sha512sums=('690ab12a2468df3911fca7628d9b2d42f31e7a0e9a7363f9f74288411e32d85c01993f65ab791a6c4d17d7f395d12a6712cec487635d8d12bd051225549c04fb'
|
2015-07-18 05:29:48 +08:00
|
|
|
|
'851292bf592a56520131a5675e481a425eac6752ff524f12ccaa903444663767a77b09661f7c1833b98574ba1e797da0903a96a980f4fab07047d1bae64cfdd6')
|
2011-09-26 01:56:11 +08:00
|
|
|
|
|
|
|
|
|
package() {
|
2015-07-18 05:29:48 +08:00
|
|
|
|
cd $pkgname-$pkgver
|
2011-09-26 01:56:11 +08:00
|
|
|
|
|
2015-07-15 07:23:38 +08:00
|
|
|
|
# patch -Np0 -i ../dblatex-0.3.5-build-fix.patch
|
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
|
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
|
|
|
|
}
|