updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / boa-constructor / PKGBUILD
blob8da8ef40418a86bd8c6d1914b7d86a5256812c5a
1 #Contributor: Mario St-Gelais <mario.stg@sympatico.ca>
3 pkgname=boa-constructor
4 pkgver=0.6.1beta
5 pkgrel=4    
6 pkgdesc="Cross platform Python IDE and wxPython GUI Builder"
7 url="http://boa-constructor.sourceforge.net/"
8 depends=('python2' 'wxpython')
9 arch=('i686' 'x86_64')
10 license=('GPL')
11 makedepends=()
12 conflicts=()
13 replaces=()
14 backup=()
15 source=("http://downloads.sourceforge.net/$pkgname/$pkgname-0.6.1.src.zip" "$pkgname.desktop" "boa-constructor.png")
16 md5sums=('150d923c608a405eeb17bf655ce26b14' 'c1ef90cc06dadd62f87113f4b3cbd6cc' '51814882beb4f371bb99d586ad6ffcb9')
19 build() {
20   #Hack to get the correct python install location (thanks phrakture)
21   _PYVER=`python2 -V 2>&1`
22   _PYVER=${_PYVER##*\ } 
23   _PYVER=${_PYVER%.*}
24   
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
33   
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