aboutsummaryrefslogtreecommitdiffstats
path: root/main/gobject-introspection/APKBUILD
blob: 4ec72bcd61831ffad31383f09b037717a415c845 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gobject-introspection
pkgver=0.9.10
pkgrel=0
pkgdesc="Introspection system for GObject-based libraries"
url="http://live.gnome.org/GObjectInstrospection"
license="LGPL GPL"
makedepends="flex bison glib-dev libffi-dev python-dev libtool"
depends="python glib-dev libffi-dev cairo-dev"
source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2"

# since this is a dev package by definition  we dont bother separate -dev
subpackages="$pkgname-doc libgirepository"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
	export CPPFLAGS=
	./configure --prefix=/usr --disable-static || return 1
	# FIXME: parallel builds is broken
	make -j1 || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

libgirepository() {
	pkgdesc="Runtime library for gobject-introspection"
	cd "$_builddir"
	install -d "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/libgirepository*.so* "$subpkgdir"/usr/lib/
}

md5sums="e5cd63d6bcc5c105e898e7c33cf42175  gobject-introspection-0.9.10.tar.bz2"