upgpkg: ocaml-integers 0.5.0-1
[arch-packages.git] / latex2rtf / trunk / PKGBUILD
blob32a4955c2e19059cf7a9c18d3acd84550a4eab0f
1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
2 # Contributor: John Proctor <jproctor@prium.net>
4 pkgname=latex2rtf
5 pkgver=2.3.17
6 pkgrel=2
7 pkgdesc="LaTeX to RTF converter"
8 arch=('x86_64')
9 url="http://latex2rtf.sourceforge.net/"
10 license=('GPL')
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')
18 build() {
19   cd "${srcdir}/${pkgname}-${pkgver}"
20   make DESTDIR=/usr latex2rtf
23 check() {
24   cd "${srcdir}/${pkgname}-${pkgver}"
25   sed -i 's,s/\\\\,s/\\\\\\,' test/bracecheck
26   chmod u+x test/bracecheck
27   make check
30 package() {
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"