1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
7 pkgdesc="Python bindings for the GTK 1.2 widget set"
9 url="http://www.pygtk.org/"
11 depends=('imlib' 'libglade-old')
13 source=("http://ftp.gtk.org/pub/gtk/python/v1.2/$_pkgname-$pkgver.tar.gz")
14 md5sums=('31f0991a18708d47fa29583c0ad956f6')
17 cd "$srcdir/$_pkgname-$pkgver"
20 export PYTHON="python2"
21 export ac_cv_path_PYTHON="python2"
22 sed -i "s|\(env python\).*|\12|;s|\(bin/python\).*|\12|" \
23 `grep -Erl "(env python|bin/python)" .`
25 # Fix reserved word var name
26 sed -i "s|as,|ar,|g" gtk.py
28 # Replace old regex with re
29 sed -i "s|regex|re|g" pyglade/xmlparse.py
31 ./configure --prefix=/usr
36 cd "$srcdir/$_pkgname-$pkgver"
38 make DESTDIR="$pkgdir/" install
40 # Let live with pygtk 2
41 rm "$pkgdir/usr/lib/python2.7/site-packages/"pygtk.*
44 # vim:set ts=2 sw=2 et: