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

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

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

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

md5sums="54eebf75547abc6b97a90a150160e154  pygobject-3.10.0.tar.xz"
sha256sums="8aaa1f83fdb2e30bae77405a63a8be600b311a04a4cdc952b2ab62ee81aad077  pygobject-3.10.0.tar.xz"
sha512sums="89f1476f5aea4f9566f3ba7f6e0ba9940355bc302c5acdea142ec012c4b7a3a6119bf7f8c6a9e791e325cb9012b59ebb2a01651a25a12ac839f1ba31c4865be4  pygobject-3.10.0.tar.xz"