updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / jvlt / PKGBUILD
blobadb49936a4e6918e8b8b267e1ecda92b464b041e
1 # Contributor: G_Syme <demichan(at)mail(dot)upb(dot)de>
2 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
4 pkgname=jvlt
5 pkgver=1.3.2
6 _pkgver=`date +%Y%m%d`
7 pkgrel=1
8 pkgdesc="A vocabulary learning tool with quizzes using flash cards similar to the Leitner system"
9 arch=('any')
10 url="http://jvlt.sourceforge.net"
11 license=('GPL')
12 depends=('java-runtime' 'x-server')
13 makedepends=('apache-ant' 'log4j')
14 source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2 \
15         $pkgname.sh $pkgname.desktop)
16 md5sums=('d1ee1c761558a8ccb153bc8d28274c4c'
17          'f04116276afcc092916e0cd749e036e7'
18          'c656f737f05b858461c89368279eb1a8')
19 noextract=($pkgname-$pkgver.jar)
21 build() {
22   cd "$srcdir"/$pkgname-$pkgver
23   install -Dm644 /usr/share/java/log4j.jar lib/log4j.jar 
24   ant dist 
25 }  
26 package() {
27   cd "$srcdir"/$pkgname-$pkgver
28   install -D -m644 dist/jVLT-${_pkgver}.jar \
29       "$pkgdir"/usr/share/java/$pkgname/$pkgname.jar 
30   install -D -m755 $srcdir/$pkgname.sh "$pkgdir"/usr/bin/$pkgname 
31   install -d -m755 "$pkgdir"/usr/share/pixmaps  
32   ln -s /usr/share/icons/$pkgname.png \
33       "$pkgdir"/usr/share/pixmaps/$pkgname.png  
34   cp -r dist/* "$pkgdir"/usr/share/java/$pkgname 
35   install -D -m644  $srcdir/$pkgname.desktop \
36     "$pkgdir"/usr/share/applications/$pkgname.desktop 
37   install -D -m644 data/images/$pkgname.png \
38     "$pkgdir"/usr/share/icons/$pkgname.png