1 # Contributor: nblock <nblock [/at\] archlinux DOT us>
6 pkgdesc='A tool to crop pdf files.'
7 url='http://www.pdfscissors.com'
8 depends=('java-runtime')
11 source=(http://sites.google.com/site/pdfscissors/${pkgname}.jar)
12 md5sums=('2e8ddd4daa466e02b88bd260167da873')
15 mkdir -p ${pkgdir}/usr/{bin,share/${pkgname}}
17 install -m644 ${pkgname}.jar ${pkgdir}/usr/share/${pkgname}/${pkgname}.jar
20 echo "#!/bin/sh" > ${pkgdir}/usr/bin/${pkgname}
21 echo "exec \$JAVA_HOME/bin/java -jar /usr/share/pdfscissors/pdfscissors.jar \$@" >> ${pkgdir}/usr/bin/${pkgname}
22 chmod +x ${pkgdir}/usr/bin/${pkgname}
25 # vim:set ts=2 sw=2 et: