blob: 156e8bf22835dcd00a6b3d8e3d30848a2ae43f9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Contributor: nblock <nblock [/at\] archlinux DOT us>
# Maintainer: nblock <nblock [/at\] archlinux DOT us>
pkgname=jasperstarter
pkgver=3.5.0
pkgrel=1
pkgdesc='Running JasperReports from command line'
arch=('any')
url='http://jasperstarter.cenote.de/'
license=('apache')
depends=('java-runtime')
source=(http://downloads.sourceforge.net/project/$pkgname/JasperStarter-${pkgver:0:-2}/${pkgname}-${pkgver}-bin.tar.bz2)
sha1sums=('2454dfb2194748d5fac5c674c65ee7daef408385')
sha256sums=('5c7a728e48f2a2ecfe1e44510cba1b11b43bf07e0ef956d8ddde1ccc0a683425')
package() {
cd "$srcdir/$pkgname"
# Install java stuff to /usr/share/java/$pkgname
mkdir -p $pkgdir/usr/share/java/$pkgname/{lib,jdbc}
install -m644 lib/*.jar $pkgdir/usr/share/java/$pkgname/lib
install -m644 jdbc/README $pkgdir/usr/share/java/$pkgname/jdbc
# Examples, upstream docs and various other files
mkdir -p $pkgdir/usr/share/doc/$pkgname
cp -dr --preserve=mode,timestamp examples $pkgdir/usr/share/doc/$pkgname
cp -dr --preserve=mode,timestamp docs $pkgdir/usr/share/doc/$pkgname
install -m644 {CHANGES,NOTICE,README.md} "${pkgdir}/usr/share/doc/${pkgname}/"
# Create startup file
mkdir -p $pkgdir/usr/bin
echo "#!/bin/sh" > ${pkgdir}/usr/bin/${pkgname}
echo "exec /usr/bin/java -jar '/usr/share/java/jasperstarter/lib/jasperstarter.jar' \"\$@\"" >> ${pkgdir}/usr/bin/${pkgname}
chmod +x ${pkgdir}/usr/bin/${pkgname}
}
# vim:set ts=2 sw=2 noet:
|