updated on Wed Jan 11 16:09:51 UTC 2012
[aur-mirror.git] / winpdb / PKGBUILD
blob69444d723101a8959b91899766586acabfcedc1c
1 # Contributor: Jason Giangrande <jgiangrande@clarku.edu>
2 pkgname=winpdb
3 pkgver=1.4.8
4 pkgrel=3
5 pkgdesc="A platform independent Python debugger"
6 arch=('i686' 'x86_64')
7 url="http://www.winpdb.org/"
8 license=('GPL')
9 depends=('python2' 'wxpython')
10 source=(http://winpdb.googlecode.com/files/$pkgname-$pkgver.tar.gz)
11 md5sums=('e28049cc93c1614b9db20960d76b7ea3')
13 build() {
14         cd $startdir/src/$pkgname-$pkgver
15         python2 setup.py install -f --root=$startdir/pkg || return 1
16         sed -i "s|/usr/bin/env python|/usr/bin/env python2|" $pkgdir/usr/bin/rpdb2
17         sed -i "s|/usr/bin/env python|/usr/bin/env python2|" $pkgdir/usr/bin/winpdb
18         sed -i "s|/usr/bin/env python|/usr/bin/env python2|" $pkgdir/usr/lib/python2.7/site-packages/rpdb2.py
19         sed -i "s|/usr/bin/env python|/usr/bin/env python2|" $pkgdir/usr/lib/python2.7/site-packages/winpdb.py
20         # Install icons
21         install -D -m644 $startdir/src/winpdb-$pkgver/artwork/winpdb-icon-16.png $startdir/pkg/usr/share/icons/winpdb-icon-16.png
22         install -D -m644 $startdir/src/winpdb-$pkgver/artwork/winpdb-icon-32.png $startdir/pkg/usr/share/icons/winpdb-icon-32.png
23         install -D -m644 $startdir/src/winpdb-$pkgver/artwork/winpdb-icon-64.png $startdir/pkg/usr/share/icons/winpdb-icon-64.png
24         # Install menu entry
25         install -D -m644 $startdir/winpdb.desktop $startdir/pkg/usr/share/applications/winpdb.desktop