summaryrefslogtreecommitdiffstats
path: root/main/py-gobject/APKBUILD
blob: 7868258eb2fe0a639dde23bf2fe555b3237a35f8 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-gobject
pkgver=2.28.6
pkgrel=0
pkgdesc="Python bindings for the GObject library"
url="http://www.pygtk.org/"
arch="all"
license="GPL"
depends=
depends_dev="libffi-dev glib-dev"
makedepends="$depends_dev python-dev py-cairo-dev"
install=
subpackages="$pkgname-dev $pkgname-doc"
source="http://ftp.gnome.org/pub/GNOME/sources/pygobject/${pkgver%.*}/pygobject-$pkgver.tar.bz2"

_builddir="$srcdir"/pygobject-$pkgver
prepare() {
	cd "$_builddir"
	# apply patches here
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-introspection \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	find $pkgdir -name "*.la" -print0 | xargs -0 rm -f
}

md5sums="a43d783228dd32899e6908352b8308f3  pygobject-2.28.6.tar.bz2"