1 # Contributor: Jason Giangrande <jgiangrande@clarku.edu>
5 pkgdesc="A platform independent Python debugger"
7 url="http://www.winpdb.org/"
9 depends=('python2' 'wxpython')
10 source=(http://winpdb.googlecode.com/files/$pkgname-$pkgver.tar.gz)
11 md5sums=('e28049cc93c1614b9db20960d76b7ea3')
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
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
25 install -D -m644 $startdir/winpdb.desktop $startdir/pkg/usr/share/applications/winpdb.desktop