blob: fc8f1c7a542ec66926cd21bfec26395e6bc6cc3e (
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
|
# $Id$
# Maintainer: Ionut Biru <ibiru@archlinux.org>
pkgbase=pygobject
pkgname=(python2-gobject pygobject-devel)
pkgver=3.18.2
pkgrel=1
arch=(i686 x86_64)
url="https://live.gnome.org/PyGObject"
license=(LGPL)
makedepends=(python2 python2-cairo gobject-introspection gnome-common)
source=(https://download.gnome.org/sources/$pkgbase/${pkgver:0:4}/$pkgbase-$pkgver.tar.xz)
sha256sums=('2a3cad1517916b74e131e6002c3824361aee0671ffb0d55ded119477fc1c2c5f')
prepare() {
mkdir build-py2 build-py3 devel
cd ${pkgbase}-${pkgver}
}
build() {
cd build-py2
../${pkgbase}-${pkgver}/configure --prefix=/usr --with-python=/usr/bin/python2
make
# cd ../build-py3
# ../${pkgbase}-${pkgver}/configure --prefix=/usr --with-python=/usr/bin/python
# make
}
#package_python-gobject() {
# pkgdesc="Python 3 bindings for GObject"
# depends=('gobject-introspection-runtime' "pygobject-devel=$pkgver" 'python' 'cairo')
# cd build-py3
# make DESTDIR="$pkgdir" install
# rm -r "$pkgdir"/usr/{include,lib/pkgconfig}
#}
package_python2-gobject() {
pkgdesc="Python 2 bindings for GObject"
depends=('gobject-introspection-runtime' "pygobject-devel=$pkgver" 'python2' 'cairo')
cd build-py2
make DESTDIR="$pkgdir" install
mv "$pkgdir"/usr/{include,lib/pkgconfig} "$srcdir/devel"
python2 -m compileall "$pkgdir"//usr/lib/python2.7/site-packages/gi
}
package_pygobject-devel() {
pkgdesc="Development files for the pygobject bindings"
cd "devel"
mkdir -p "$pkgdir"/usr/{include,lib}
mv include "$pkgdir/usr/"
mv pkgconfig "$pkgdir/usr/lib/"
}
|