summaryrefslogtreecommitdiff
path: root/extra/latex2rtf/PKGBUILD
blob: ffdbb3d132a7e0692badf8b6a3a9491e44b8f17b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $Id: PKGBUILD 164721 2012-08-04 06:54:39Z remy $
# Maintainer: Rémy Oudompheng <remy@archlinux.org>
# Contributor: John Proctor <jproctor@prium.net>

pkgname=latex2rtf
pkgver=2.2.1c
pkgrel=1
pkgdesc="LaTeX to RTF converter"
arch=('i686' 'x86_64')
url="http://latex2rtf.sourceforge.net/"
license=('GPL')
depends=('glibc' 'imagemagick' 'ghostscript')
checkdepends=(
  'texlive-bin'
  'texlive-core'
  'texlive-latexextra' # for a4wide package
)
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz)
sha1sums=('3fd5874de8988cf45f8862d2b3db8ed13a04caa4')

build() {
  cd "${srcdir}/${pkgname}-2.2.1"
  make
}

check() {
  cd "${srcdir}/${pkgname}-2.2.1"
  make check
}

package() {
  cd "${srcdir}/${pkgname}-2.2.1"
  make DESTDIR=${pkgdir}/usr install
  sed -i -e 's|error "no input file specified"| echo "error: no input file specified"|' ${pkgdir}/usr/bin/latex2png
}