updated on Fri Jan 20 00:01:56 UTC 2012
[aur-mirror.git] / jmemorize / PKGBUILD
blobe30527ea4f3dfcbc37b6caf2d72f48e658ee7515
1 # Contributor: G_Syme <demichan(at)mail(dot)upb(dot)de>
2 pkgname=jmemorize
3 pkgver=1.3.0
4 pkgrel=2
5 pkgdesc="Manages your learning processes by using flashcards and the famous Leitner system"
6 arch=('i686' 'x86_64')
7 url="http://jmemorize.org"
8 license=('GPL')
9 depends=('java-runtime')
10 source=(http://downloads.sourceforge.net/$pkgname/jMemorize-$pkgver.jar \
11         $pkgname.sh $pkgname-16x16.png $pkgname-64x64.png $pkgname.desktop)
12 noextract=(jMemorize-$pkgver.jar)
13 md5sums=('f61f5e87b8f7c6faa07525753915064c'
14          'a21245d198036b667465375a503c1944'
15          '684ae86603fc372baea3c1cbdbcb8a16'
16          'b3d9708b2ffdacdb57f8f78ad2ff0136'
17          'd131ce98ce2fdaea716045d85948089f')
19 build() {
20   cd "$srcdir"/
21   install -D -m644 jMemorize-$pkgver.jar \
22       "$pkgdir"/usr/share/java/$pkgname/$pkgname.jar
23   install -D -m755 $pkgname.sh "$pkgdir"/usr/bin/$pkgname
25   for i in 16x16 64x64; do
26     install -D -m644 $pkgname-$i.png \
27         "$pkgdir"/usr/share/icons/hicolor/$i/apps/$pkgname.png
28   done
30   install -d -m755 "$pkgdir"/usr/share/pixmaps
31   ln -s ../icons/hicolor/64x64/apps/$pkgname.png \
32       "$pkgdir"/usr/share/pixmaps/$pkgname.png
33   install -D -m644 $pkgname.desktop \
34       "$pkgdir"/usr/share/applications/$pkgname.desktop