APKBUILD 874 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-gobject
3
pkgver=2.28.4
4
pkgrel=1
Natanael Copa's avatar
Natanael Copa committed
5 6
pkgdesc="Python bindings for the GObject library"
url="http://www.pygtk.org/"
7
arch="all"
Natanael Copa's avatar
Natanael Copa committed
8 9
license="GPL"
depends=
10
makedepends="python-dev glib-dev py-cairo-dev gobject-introspection-dev"
Natanael Copa's avatar
Natanael Copa committed
11 12
install=
subpackages="$pkgname-dev $pkgname-doc"
13
source="http://ftp.gnome.org/pub/GNOME/sources/pygobject/${pkgver%.*}/pygobject-$pkgver.tar.bz2"
Natanael Copa's avatar
Natanael Copa committed
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33

_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 \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
34
	find $pkgdir -name "*.la" -print0 | xargs -0 rm -f
Natanael Copa's avatar
Natanael Copa committed
35 36
}

37
md5sums="14e700d5f4b8af00a68a6bcdd65a8db9  pygobject-2.28.4.tar.bz2"