1 # Maintainer: Kevin Klement = klement at philos dot umass dot edu
4 dashedver=${pkgver//./-}
5 dashedmainver=${dashedver#-*}
7 pkgdesc="Tool to convert rich text format (RTF) documents to LaTeX 2e format."
9 url="http://sourceforge.net/projects/rtf2latex2e/"
12 optdepends=('texlive-core: To make use of LaTeX output files')
13 source=(http://sourceforge.net/projects/$pkgname/files/$pkgname-$dashedver.zip)
14 noextract=($pkgname-$dashedver.zip)
15 md5sums=('b98f0199ab6e1d0f51b6f52262f22361')
19 unzip $pkgname-$dashedver.zip
20 cd "$pkgname-$dashedver"
21 sed -i -e "s|^PREFIX?=.*|PREFIX?=$pkgdir/usr/share/$pkgname|" Makefile
28 mkdir -p $pkgdir/usr/bin
29 cat >> $pkgdir/usr/bin/$pkgname << EOF
31 /usr/share/$pkgname/bin/$pkgname -P /usr/share/$pkgname/share/$pkgname \$@
33 chmod a+x $pkgdir/usr/bin/$pkgname
36 # vim:set ts=2 sw=2 et: