34 lines
914 B
Plaintext
34 lines
914 B
Plaintext
# Description: set of bindings for the GTK widget set
|
|
# URL: http://www.pygtk.org/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: libglade-compat python-cairo python-gobject-compat
|
|
|
|
name=pygtk
|
|
version=2.24.0
|
|
release=4
|
|
source=(https://download.gnome.org/sources/$name/${version::4}/$name-$version.tar.bz2
|
|
python27.patch
|
|
fix-leaks-of-pango-objects.patch)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
# https://bugzilla.gnome.org/show_bug.cgi?id=623965
|
|
patch -p1 -i $SRC/python27.patch
|
|
|
|
# https://bugzilla.gnome.org/show_bug.cgi?id=660216
|
|
patch -p1 -i $SRC/fix-leaks-of-pango-objects.patch
|
|
|
|
PKG_CONFIG_PATH+="/usr/lib/pango-compat/pkgconfig:/usr/lib/libcairo-compat/pkgconfig" \
|
|
./configure --prefix=/usr
|
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
install -m 0644 gtk/gtk-extrafuncs.defs $PKG/usr/share/pygtk/2.0/defs/
|
|
|
|
rm -r $PKG/usr/share/gtk-doc
|
|
}
|