updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / writer2latex / PKGBUILD
blob75e74f57c48d827c4981eb111c2b5c58605b9e93
1 # Maintainer: Dan Serban
2 # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
4 pkgname=writer2latex
5 pkgver=1.0.2
6 pkgrel=1
7 pkgdesc="Convert OO-Writer documents to LaTeX"
8 arch=(any)
9 url=http://writer2latex.sourceforge.net/
10 license=(LGPL)
11 depends=('java-runtime')
12 source=("http://downloads.sourceforge.net/project/writer2latex/writer2latex/Writer2LaTeX%201.0/writer2latex102.zip")
13 md5sums=('dc6d39766d5046ca73f96faad64e474a')
15 build()
17   mv writer2latex10 writer2latex
18   mkdir -p "$pkgdir/usr/share"
19   mv writer2latex "$pkgdir/usr/share/"
20   mkdir -p "$pkgdir/usr/bin"
21   USRBINFILE="$pkgdir/usr/bin/w2l"
22   echo "#!/bin/bash" > "$USRBINFILE"
23   echo 'java -jar /usr/share/writer2latex/writer2latex.jar "$@"' >> "$USRBINFILE"
24   chmod +x "$USRBINFILE"