blob: f6c9f0d516c5555ebb70cf99a19fcbfe1e99b717 (
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
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=py-gnome
_realname=gnome-python
pkgver=2.28.1
_basever=2.28
pkgrel=6
pkgdesc="Python interface to GNOME libraries"
url="http://pygtk.org"
arch="all"
license="LGPL-2.0-or-later"
depends="$pkgname-gconf"
depends_dev="gtk+2.0-dev py-gobject-dev py-gtk-dev python2-dev gconf-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev $pkgname-gconf"
source="https://download.gnome.org/sources/$_realname/$_basever/$_realname-$pkgver.tar.bz2"
replaces="$pkgname-bonobo $pkgname-libgnome $pkgname-gnomevfs"
builddir="$srcdir"/$_realname-$pkgver
prepare() {
cd "$builddir"
update_config_sub
}
build() {
cd "$builddir"
LIBS="$(pkg-config gobject-2.0 --libs)" \
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--disable-gnome \
--disable-gnomeui \
--disable-gnomecanvas \
--disable-gnomevfs \
--disable-gnomevfsbonobo \
--disable-pyvfsmodule \
--disable-bonobo_activation \
--disable-bonobo \
--disable-bonoboui
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install-pkgconfigDATA
}
gconf() {
pkgdesc="Python bindings for interfacing with GConf"
depends="gconf py-gtk"
cd "$builddir"
make -C gconf DESTDIR="$subpkgdir" install
}
sha512sums="632d91d416f8209c2bc8d576d1229069e00f2cfeedb3441a5f151e12973ed740c0bb26d18d5c16cfeeb64ca35933537997277450001cffd96d8d5077027d45f2 gnome-python-2.28.1.tar.bz2"
|