blob: 0d72c8628fb327c349392b4fa333582f16f76d85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-gtk
pkgver=2.24.0
pkgrel=14
pkgdesc="Python bindings for the GTK widget set"
url="http://www.pygtk.org/"
arch="all"
license="LGPL"
depends_dev="py-gobject-dev py-gtk"
depends="py2-cairo py-gobject"
makedepends="$depends_dev libglade-dev py2-cairo-dev python2-dev libffi-dev
autoconf automake libtool"
source="http://ftp.gnome.org/pub/gnome/sources/pygtk/${pkgver%.*}/pygtk-$pkgver.tar.bz2
pygtk-2.14.1-libdir-pc.patch
automake.patch
"
#Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed
options="!check"
subpackages="$pkgname-dev $pkgname-doc $pkgname-demo"
builddir="$srcdir"/pygtk-$pkgver
prepare() {
local i
cd "$builddir"
update_config_sub || return 1
default_prepare
# disable pyc
echo '#!/bin/sh' > py-compile
libtoolize --force && aclocal -I m4 && autoconf \
&& automake --add-missing || return 1
}
build() {
cd "$builddir"
CFLAGS="$CFLAGS -D_GNU_SOURCE" \
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
|| return 1
make || return 1
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
install -m644 gtk/gtk-extrafuncs.defs \
"$pkgdir"/usr/share/pygtk/2.0/defs/ || return 1
rm "$pkgdir"/usr/lib/python*/site-packages/gtk*/gtk/*.la \
"$pkgdir"/usr/lib/python*/site-packages/gtk*/*.la
}
demo() {
pkgdesc="Demonstration of pygtk"
depends="py-gtk"
mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/lib/pygtk/2.0
mv "$pkgdir"/usr/bin/pygtk-demo "$subpkgdir"/usr/bin/
mv "$pkgdir"/usr/lib/pygtk/2.0/*demo* \
"$subpkgdir"/usr/lib/pygtk/2.0/
}
sha512sums="64f4344fcf7636e0b2016ffd5310250b5c02a1bf87e44aef39b5d4cf4a5fc50d27cb4f030d4c6802cff61fffb88dee7752821e3d8a4cd1c34dc3745d9ff2f0da pygtk-2.24.0.tar.bz2
cf1fb2731b14d9f96624be0bd250c178c25232f579e585567d8e44436f43f1d5444c9c85acca7cc13511cd036e19eacc40df158b0103c785f22149b76c9fe1a9 pygtk-2.14.1-libdir-pc.patch
e68269423638a0c8122a6881fd37310a55a3c25f56f94622dbb421412765abb649a8f89074c47c5b45b2c88046610090ed2f845a785f78f9851ab1862a846c16 automake.patch"
|