aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-gobject3/APKBUILD
blob: 68f33a0e1cbb97ad586b6022a7dcf21b2fb42048 (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.14.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"
	# apply patches here
}

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

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

md5sums="17722912afa982a6feace4bb9bf52778  pygobject-3.14.0.tar.xz"
sha256sums="779effa93f4b59cdb72f4ab0128fb3fd82900bf686193b570fd3a8ce63392d54  pygobject-3.14.0.tar.xz"
sha512sums="f6e1e5826a6afe81eb0a37bb554b433769622f8a0d17ac9836498425d70c4583cf8157027a555c21fd7a0d6686863c7803a350550665a375a906fccdabca2090  pygobject-3.14.0.tar.xz"