updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vtrainr / PKGBUILD
blobf7c999d6447951687558f3454c8f493a28320bbd
1 # Maintainer: linopolus <linopolus@googlemail.com>
2 # Contributor: linopolus <linopolus@googlemail.com>
3 pkgname=vtrainr
4 pkgver=0.8.1
5 pkgrel=3
6 pkgdesc="V-Trainr is a vocabulary trainer I try to keep as simple as possible."
7 arch=('i686' 'x86_64')
8 url="http://launchpad.net/vtrainr"
9 license=('GPLv3')
10 depends=('pyqt')
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')
16 build() {
17   cd $srcdir/
18   mv dev vtrainr
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/
22   cd vtrainr/
23   mkdir -p $pkgdir/usr/share/pixmaps/
24   cp pix/vtrainr.png pix/vconvertr-48x48.png $pkgdir/usr/share/pixmaps/
25   mkdir -p $pkgdir/opt/
26   cd ..
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