updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / pdfscissors / PKGBUILD
blobbc566f8474929a89b75be83fb39936f6902d7e3a
1 # Contributor: nblock <nblock [/at\] archlinux DOT us>
3 pkgname=pdfscissors
4 pkgver=0.0.2
5 pkgrel=1
6 pkgdesc='A tool to crop pdf files.'
7 url='http://www.pdfscissors.com'
8 depends=('java-runtime')
9 arch=('any')
10 license=('AGPL')
11 source=(http://sites.google.com/site/pdfscissors/${pkgname}.jar)
12 md5sums=('2e8ddd4daa466e02b88bd260167da873')
14 build() {
15   mkdir -p ${pkgdir}/usr/{bin,share/${pkgname}}
16   cd ${srcdir}
17   install -m644 ${pkgname}.jar ${pkgdir}/usr/share/${pkgname}/${pkgname}.jar
18   
19   #create startup file
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: