mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
32 lines
1.2 KiB
Bash
32 lines
1.2 KiB
Bash
#
|
||
# Apps Packages for Chakra, part of chakra-project.org
|
||
#
|
||
# Contributor: Giuseppe Calà <jiveaxe@gmail.com>
|
||
# Contributor: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
|
||
|
||
pkgname=dblatex
|
||
pkgver=0.3.2
|
||
pkgrel=1
|
||
pkgdesc="DocBook (XML and SGML) to DVI, PDF, PostScript converter using latex"
|
||
arch=(any)
|
||
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")
|
||
md5sums=('95f81bc46690c4052818a82a32d05b7c')
|
||
|
||
package() {
|
||
cd $srcdir/$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
|
||
}
|