mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
27 lines
1.1 KiB
Bash
27 lines
1.1 KiB
Bash
pkgname=dblatex
|
||
pkgver=0.3.7
|
||
pkgrel=3
|
||
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=("https://pypi.python.org/packages/source/d/dblatex/$pkgname-$pkgver.tar.bz2")
|
||
sha512sums=('690ab12a2468df3911fca7628d9b2d42f31e7a0e9a7363f9f74288411e32d85c01993f65ab791a6c4d17d7f395d12a6712cec487635d8d12bd051225549c04fb')
|
||
|
||
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 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
|
||
}
|