# Maintainer: Natanael Copa pkgname=gobject-introspection pkgver=0.9.12 pkgrel=1 pkgdesc="Introspection system for GObject-based libraries" url="http://live.gnome.org/GObjectInstrospection" arch="all" 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 001-ccache.patch 002-ccache.patch" # since this is a dev package by definition we dont bother separate -dev subpackages="$pkgname-doc libgirepository" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg "Applying $i" patch -p1 -i "$srcdir"/$i || return 1 ;; esac done } 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="260ba5e77b5c0de0e7d8faf63ecbfee7 gobject-introspection-0.9.12.tar.bz2 4ad235a1372f247f6df83a548ad4a331 001-ccache.patch 13c587cda7bbb12402ed43dbd7161310 002-ccache.patch"