1 # Contributor: Mathieu Clabaut <mathieu.clabaut@gmail.com>
7 pkgdesc="a tool that automagically creates a fully working application from the GUI glade definition plus some declarative information with no programming"
8 url="http://autoglade.sourceforge.net/"
10 depends=('python2' 'glade' 'pygobject' 'pygtk' )
11 provides=('autoglade')
12 arch=('i686' 'x86_64')
14 "http://downloads.sourceforge.net/${pkgname}/${pkgname}_${pkgver}-1ubuntu3.tar.gz")
15 md5sums=('eac499260ca3143345f50159aed8b15a')
21 cd ${startdir}/src/trunk
24 python2 setup.py install --root $startdir/pkg || return 1
25 chmod a+x $startdir/pkg/usr/lib/python*/site-packages/autoglade/autoglade.py
26 install -d $startdir/pkg/usr/share/autoglade
27 cp -r examples/ html/ $startdir/pkg/usr/share/autoglade/
28 chmod o+x $startdir/pkg/usr/share/autoglade/html
29 chmod o+x $startdir/pkg/usr/share/autoglade/examples
30 install -d $startdir/pkg/usr/bin
31 cd $startdir/pkg/usr/bin
32 sed -i 's@#! */usr/bin/env python@#!/usr/bin/env python2@' ${pkgdir}/usr/lib/python*/site-packages/autoglade/autoglade.py
33 ln -s $startdir/pkg/usr/lib/python*/site-packages/autoglade/autoglade.py autoglade
34 find $startdir/pkg/usr/share/autoglade/ -name ".svn" -exec rm -rf \{\} \;|| true