updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / wxglade / PKGBUILD
blob65219988677963e0d5619b32ca715f7d6fd1dd1d
1 # Maintainer: Brad Fanella <bradfanella@archlinux.us>
2 # Contributor: jrutila
3 # Contributor: grimi <grimi@poczta.fm>
4 # Contributor: jht <stefano@inventati.org>
6 pkgname=wxglade
7 pkgver=0.6.3
8 pkgrel=2
9 pkgdesc="A GUI designer for wxWidgets written in Python"
10 arch=('i686' 'x86_64')
11 license=('MIT')
12 url="http://wxglade.sourceforge.net/"
13 depends=('wxpython')
14 makedepends=('sed')
15 source=("http://downloads.sourceforge.net/sourceforge/wxglade/wxGlade-$pkgver.tar.gz" \
16         "wxglade.desktop")
17 md5sums=('05faaab4639b4aadf6d3b32e745ba0d3'
18          '50a9ad5d58bb6cd7f71bfa93aa131162')
20 build() {
21         cd $startdir/src/wxGlade-$pkgver
22         pv=2.7
24         # Make some dirs
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
31         # Fix makefile
32         sed 's\zwxglade.py;\wxglade.py;\' -i Makefile
34         make PYVER=$pv DESTDIR=${startdir}/pkg install
36         # Fix exe
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
40         # Install locale
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
47         # Install launcher
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