updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / meper / PKGBUILD
blob8b78580493a6c1e930aa1786d46c4c8c22ffd18c
1 # Contributor: Vojtech Horky <vojta . horky at-symbol seznam . cz>
2 pkgname=meper
3 pkgver=1.0
4 pkgrel=1
5 pkgdesc="MetaPost editor and previewer"
6 url="http://cseweb.ucsd.edu/~s1pan/MEPer/"
7 arch=('any')
8 license=('GPL')
9 depends=('java-runtime' 'imagemagick' 'ghostscript')
10 source=('http://cseweb.ucsd.edu/~s1pan/MEPer/MEPer.jar')
11 noextract=('MEPer.jar')
12 md5sums=('9402506d29078796ebe2f25aa2d6cf3d')
15 build() {
16         cd ${srcdir}
17         install -D -m644 MEPer.jar ${pkgdir}/usr/share/java/meper/MEPer.jar
18         cat >launcher.sh <<EOF_LAUNCHER
19 #!/bin/sh
21 \$JAVA_HOME/bin/java -jar /usr/share/java/meper/MEPer.jar "\$@"
22 EOF_LAUNCHER
23         install -D -m755 launcher.sh ${pkgdir}/usr/bin/meper