mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
26 lines
893 B
Bash
26 lines
893 B
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=dblatex
|
|
pkgver=0.3
|
|
pkgrel=2
|
|
pkgdesc="DocBook (XML and SGML) to DVI, PDF, PostScript converter using latex"
|
|
arch=(any)
|
|
url="http://dblatex.sourceforge.net/"
|
|
license=("GPL")
|
|
depends=('libxslt' 'texlive-core' 'texlive-htmlxml' 'docbook-xsl' 'docbook-xml' 'python2' 'latex-epic'
|
|
'texlive-latexextra')
|
|
source=("http://downloads.sourceforge.net/project/dblatex/dblatex/$pkgname-$pkgver/$pkgname-$pkgver.tar.bz2")
|
|
md5sums=('7de6bf72b8b2934169ce0ec911e966ed')
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
python2 setup.py install --root ${pkgdir} --catalogs=/etc/xml/docbook
|
|
sed -i -e "s,${pkgdir},," -e "s,#!/usr/bin/env python,#!/usr/bin/env python2," ${pkgdir}/usr/bin/dblatex
|
|
}
|