updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / jline / PKGBUILD
blob7bbb22f4298204df1b80ec280a3a096cc7c65102
1 # Contributor: Christoffer Hirth [toffyrn(at)toffyrn(dot)net]
3 pkgname=jline
4 pkgver=0.9.94
5 pkgrel=4
6 pkgdesc="A Java library for handling console input. Similar to GNU Readline."
7 arch=('i686' 'x86_64')
8 url="http://jline.sourceforge.net"
9 license=('BSD')
10 depends=('java-environment')
11 source=(http://downloads.sourceforge.net/jline/jline-0.9.94.zip)
12 md5sums=('cd4aad9fb454e8acf7af476dae8abb72')
14 build() {
15         #Creating directories
16         install -d -m755 $pkgdir/usr/lib/$pkgname
17         install -d -m755 $pkgdir/usr/share/licenses/$pkgname/
18         install -d -m755 $pkgdir/usr/share/doc/$pkgname/
20         #Installing the jar file.
21         cp $srcdir/$pkgname-$pkgver/$pkgname-$pkgver.jar $pkgdir/usr/lib/$pkgname/$pkgname.jar
23         #Installing the javadoc. (And examples)
24         cp -R $srcdir/$pkgname-$pkgver/apidocs/ $pkgdir/usr/share/doc/$pkgname/
25         cp -R $srcdir/$pkgname-$pkgver/examples/$pkgname/example/ $pkgdir/usr/share/doc/$pkgname/
26         
27         #Installing license
28         cp $srcdir/$pkgname-$pkgver/LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/