1 #Contributor: Mario St-Gelais <mario.stg@sympatico.ca>
3 pkgname=boa-constructor
6 pkgdesc="Cross platform Python IDE and wxPython GUI Builder"
7 url="http://boa-constructor.sourceforge.net/"
8 depends=('python2' 'wxpython')
15 source=("http://downloads.sourceforge.net/$pkgname/$pkgname-0.6.1.src.zip" "$pkgname.desktop" "boa-constructor.png")
16 md5sums=('150d923c608a405eeb17bf655ce26b14' 'c1ef90cc06dadd62f87113f4b3cbd6cc' '51814882beb4f371bb99d586ad6ffcb9')
20 #Hack to get the correct python install location (thanks phrakture)
21 _PYVER=`python2 -V 2>&1`
25 _DESTDIR=/usr/lib/python$_PYVER/site-packages/$pkgname
27 mkdir -p $startdir/pkg/$_DESTDIR
28 cd $startdir/src/$pkgname-0.6.1
29 cp -R * $startdir/pkg/$_DESTDIR
31 #echo "Exec=python $_DESTDIR/Boa.py" >> $startdir/src/$pkgname.desktop
32 install -D -m644 $startdir/src/$pkgname.desktop $startdir/pkg/usr/share/applications/$pkgname.desktop
34 mkdir -p $pkgdir/usr/share/pixmaps/
35 install -D -m644 $srcdir/boa-constructor.png $pkgdir/usr/share/pixmaps/boa-constructor.png
37 mkdir -p $pkgdir/usr/bin/
38 echo "python2 /usr/lib/python$_PYVER/site-packages/boa-constructor/Boa.py" > $pkgdir/usr/bin/boa-constructor
39 chmod 755 $pkgdir/usr/bin/boa-constructor