1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
2 # Contributor: John Proctor <jproctor@prium.net>
7 pkgdesc="LaTeX to RTF converter"
9 url="http://latex2rtf.sourceforge.net/"
11 depends=('glibc' 'imagemagick' 'ghostscript')
12 makedepends=('texinfo' 'texlive-bin' 'texlive-plainextra')
13 checkdepends=('texlive-latexextra') # for a4wide package
14 source=("https://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz")
15 sha1sums=('db5a892af6cf4119593be3881ac738d695ccc0bc')
16 md5sums=('025a6b779eb6ca1c86da71a284e7459f')
19 cd "${srcdir}/${pkgname}-${pkgver}"
20 make DESTDIR=/usr latex2rtf
24 cd "${srcdir}/${pkgname}-${pkgver}"
25 sed -i 's,s/\\\\,s/\\\\\\,' test/bracecheck
26 chmod u+x test/bracecheck
31 cd "${srcdir}/${pkgname}-${pkgver}"
32 make DESTDIR="${pkgdir}/usr" install install-info
33 chmod 755 "${pkgdir}/usr/bin/latex2png"
34 sed -i -e 's|error "no input file specified"| echo "error: no input file specified"|' "${pkgdir}/usr/bin/latex2png"