1 # Maintainer: linopolus <linopolus@googlemail.com>
2 # Contributor: linopolus <linopolus@googlemail.com>
6 pkgdesc="V-Trainr is a vocabulary trainer I try to keep as simple as possible."
8 url="http://launchpad.net/vtrainr"
11 source=(http://launchpad.net/$pkgname/trunk/$pkgver/+download/$pkgname-$pkgver.tar.bz2 V-Trainr.desktop V-Convertr.desktop)
12 md5sums=('3de455ef5b33b9337704d67b02baff8e'
13 '1b9bb8974c8515ed6ac966d043a23835'
14 'e4857c3bad0782458d930a58c0793dd1')
19 mkdir -p $pkgdir/usr/share/applications/
20 mv V-Trainr.desktop $pkgdir/usr/share/applications/
21 mv V-Convertr.desktop $pkgdir/usr/share/applications/
23 mkdir -p $pkgdir/usr/share/pixmaps/
24 cp pix/vtrainr.png pix/vconvertr-48x48.png $pkgdir/usr/share/pixmaps/
27 cp -R vtrainr $pkgdir/opt/
28 mkdir -p $pkgdir/usr/bin/
29 echo "#!/bin/sh" > $pkgdir/usr/bin/vtrainr
30 echo "cd /opt/vtrainr" >> $pkgdir/usr/bin/vtrainr
31 echo "./vtrainr.py" >> $pkgdir/usr/bin/vtrainr
32 chmod +x $pkgdir/usr/bin/vtrainr
33 echo "#!/bin/sh" > $pkgdir/usr/bin/vtconvertr
34 echo "cd /opt/vtrainr" >> $pkgdir/usr/bin/vconvertr
35 echo "./vconvertr.py" >> $pkgdir/usr/bin/vconvertr
36 chmod +x $pkgdir/usr/bin/vconvertr
37 chmod 777 $pkgdir/opt/vtrainr/data/config.cfg