summaryrefslogtreecommitdiffstats
path: root/main/py-gobject3/APKBUILD
blob: 30eb1ea368d18ec8b727e66d0bdd54ffe7777620 (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.1
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="3e47b6ebb15eacbdb3cb0f1e3386f7e9  pygobject-3.10.1.tar.xz"
sha256sums="87a4d3de4b8ea30a1290229f62092aeb0b77e6b21ca6588bb4704e05fd750837  pygobject-3.10.1.tar.xz"
sha512sums="721b31cdf6ce866bbf467d54a3fb012e08622958aaf6c0b396b0231607eb4a4fd5265776cae53035542e32819f77de5fbd46adf5d5383d8ffb41d2cab9b62ecd  pygobject-3.10.1.tar.xz"