summaryrefslogtreecommitdiff
path: root/pygtk/Pkgfile
blob: 1f59cef8c376779afd2ed117621c823d11801fb8 (plain)
    1 # Description: set of bindings for the GTK widget set
    2 # URL: http://www.pygtk.org/
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: libglade-compat python-cairo python-gobject-compat
    5 
    6 name=pygtk
    7 version=2.24.0
    8 release=4
    9 source=(https://download.gnome.org/sources/$name/${version::4}/$name-$version.tar.bz2
   10 	python27.patch
   11 	fix-leaks-of-pango-objects.patch)
   12 
   13 build() {
   14 	cd $name-$version
   15 
   16 	# https://bugzilla.gnome.org/show_bug.cgi?id=623965
   17 	patch -p1 -i $SRC/python27.patch
   18 
   19 	# https://bugzilla.gnome.org/show_bug.cgi?id=660216
   20 	patch -p1 -i $SRC/fix-leaks-of-pango-objects.patch
   21 
   22 	PKG_CONFIG_PATH+="/usr/lib/pango-compat/pkgconfig:/usr/lib/libcairo-compat/pkgconfig" \
   23 	./configure --prefix=/usr
   24 
   25 	sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   26 
   27 	make
   28 	make DESTDIR=$PKG install
   29 
   30 	install -m 0644 gtk/gtk-extrafuncs.defs $PKG/usr/share/pygtk/2.0/defs/
   31 
   32 	rm -r $PKG/usr/share/gtk-doc
   33 }

Generated by cgit