updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / pygtk-1.2 / PKGBUILD
blob23b68e5ff073557791822f1c12041ea4e4122c84
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 _pkgname=pygtk
4 pkgname=$_pkgname-1.2
5 pkgver=0.6.12
6 pkgrel=1
7 pkgdesc="Python bindings for the GTK 1.2 widget set"
8 arch=(i686 x86_64)
9 url="http://www.pygtk.org/"
10 license=('GPL')
11 depends=('imlib' 'libglade-old')
12 options=('!libtool')
13 source=("http://ftp.gtk.org/pub/gtk/python/v1.2/$_pkgname-$pkgver.tar.gz")
14 md5sums=('31f0991a18708d47fa29583c0ad956f6')
16 build() {
17   cd "$srcdir/$_pkgname-$pkgver"
19   # Python2 Fixes
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
32   make
35 package() {
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: