diff options
-rw-r--r-- | abs/extra/dblatex/PKGBUILD | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/abs/extra/dblatex/PKGBUILD b/abs/extra/dblatex/PKGBUILD new file mode 100644 index 0000000..498c6a7 --- /dev/null +++ b/abs/extra/dblatex/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Lukas Fleischer <lfleischer@archlinux.org> +# Contributor: Marcin Karpezo <sirmacik at gmail dot com> +# Contributor: Andreas Hauser <andy-aur@splashground.de> + +pkgname=dblatex +pkgver=0.3.10 +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-xsl' 'docbook-xml' 'libxslt' 'python2' 'texlive-core' 'texlive-htmlxml' + 'texlive-latexextra' 'texlive-pictures' 'texlive-science') +source=("https://downloads.sourceforge.net/project/dblatex/dblatex/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2") +md5sums=('437513c07101cefe5be3cbe83f313878') + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + python2 setup.py install --root "${pkgdir}" --catalogs=/etc/xml/docbook-xml + sed -i -e "s,${pkgdir},," -e "s,#!/usr/bin/env python,#!/usr/bin/env python2," \ + "${pkgdir}/usr/bin/dblatex" +} |