[arch-commits] Commit in pygtk/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Fri Jul 14 12:17:35 UTC 2017
Date: Friday, July 14, 2017 @ 12:17:34
Author: heftig
Revision: 300532
2.24.0-7
Modified:
pygtk/trunk/PKGBUILD
----------+
PKGBUILD | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-07-14 12:05:46 UTC (rev 300531)
+++ PKGBUILD 2017-07-14 12:17:34 UTC (rev 300532)
@@ -4,7 +4,7 @@
pkgname=pygtk
pkgver=2.24.0
-pkgrel=6
+pkgrel=7
pkgdesc="Python bindings for the GTK widget set"
arch=('i686' 'x86_64')
license=('LGPL')
@@ -22,19 +22,24 @@
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
- #https://bugzilla.gnome.org/show_bug.cgi?id=623965
+ # https://bugzilla.gnome.org/show_bug.cgi?id=623965
patch -Np1 -i "${srcdir}/python27.patch"
- #https://bugzilla.gnome.org/show_bug.cgi?id=660216
+ # https://bugzilla.gnome.org/show_bug.cgi?id=660216
patch -Np1 -i "${srcdir}/fix-leaks-of-pango-objects.patch"
+ # Python 2
sed -i -e 's#env python$#env python2#' examples/pygtk-demo/{,demos/}*.py
+
+ # No docs
+ sed -i '/^SUBDIRS =/s/docs//' Makefile.in
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- PYTHON=/usr/bin/python2 ./configure --prefix=/usr
+ PYTHON=/usr/bin/python2 ./configure --prefix=/usr --disable-docs
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
More information about the arch-commits
mailing list