summaryrefslogtreecommitdiff
path: root/extra/latex2rtf/PKGBUILD
blob: c7d15c6c71d0881a342b6b4bb5ddd301d771080a (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
36
# $Id: PKGBUILD 171488 2012-11-18 03:22:38Z eric $
# Maintainer: Rémy Oudompheng <remy@archlinux.org>
# Contributor: John Proctor <jproctor@prium.net>

pkgname=latex2rtf
pkgver=2.2.1c
pkgrel=2
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
)
install=latex2rtf.install
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz)
sha1sums=('3fd5874de8988cf45f8862d2b3db8ed13a04caa4')

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

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

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