1 # Maintainer: Brad Fanella <bradfanella@archlinux.us>
3 # Contributor: grimi <grimi@poczta.fm>
4 # Contributor: jht <stefano@inventati.org>
9 pkgdesc="A GUI designer for wxWidgets written in Python"
10 arch=('i686' 'x86_64')
12 url="http://wxglade.sourceforge.net/"
15 source=("http://downloads.sourceforge.net/sourceforge/wxglade/wxGlade-$pkgver.tar.gz" \
17 md5sums=('05faaab4639b4aadf6d3b32e745ba0d3'
18 '50a9ad5d58bb6cd7f71bfa93aa131162')
21 cd $startdir/src/wxGlade-$pkgver
25 mkdir -p $startdir/pkg/usr/share/{man/man1,doc/python-wxglade,locale}
26 mkdir -p $startdir/pkg/usr/share/{applications,pixmaps,licenses/wxglade}
27 mkdir -p $startdir/pkg/usr/lib/python$pv/site-packages/wxglade
28 mkdir -p $startdir/pkg/usr/share/python-wxglade/icons
29 mkdir -p $startdir/pkg/usr/bin
32 sed 's\zwxglade.py;\wxglade.py;\' -i Makefile
34 make PYVER=$pv DESTDIR=${startdir}/pkg install
37 sed 's\pv="2.3"\pv="'$pv'"\' -i $startdir/pkg/usr/bin/wxglade
38 sed 's\exec python\exec python2\' -i $startdir/pkg/usr/bin/wxglade
41 cp -a locale/* $startdir/pkg/usr/share/locale/
43 # Copy license.txt and credist.txt
44 install -m644 license.txt $startdir/pkg/usr/share/licenses/wxglade
45 install -m644 license.txt credits.txt $startdir/pkg/usr/lib/python$pv/site-packages/wxglade
48 install -m644 icons/icon.xpm $startdir/pkg/usr/share/pixmaps/wxglade.xpm
49 install -m644 $startdir/src/wxglade.desktop $startdir/pkg/usr/share/applications