# Maintainer: Natanael Copa pkgname=gobject-introspection pkgver=1.30.0 pkgrel=0 pkgdesc="Introspection system for GObject-based libraries" url="http://live.gnome.org/GObjectInstrospection" arch="all" license="LGPL GPL" depends_dev="python glib-dev libffi-dev cairo-dev" makedepends="$depends_dev flex bison python-dev libtool" depends= replaces="libgirepository" source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2 0001-repository-Fix-g_irepository_get_c_prefix.patch 0002-Skip-analysis-of-params-that-have-been-skip-d.patch 0003-Bug-660338-Account-for-padding-in-struct-size-check.patch 0007-giconstantinfo-Add-API-to-fix-memory-leak.patch 0008-scanner-split-CC-environment-variable.patch " # since this is a dev package by definition we dont bother separate -dev subpackages="$pkgname-doc $pkgname-dev" _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" ./configure --prefix=/usr --disable-static || return 1 make V=1 || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" -name '*.la' -delete } dev() { mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/share "$subpkgdir"/usr/ || return 1 mv "$pkgdir"/usr/lib/gobject-introspection "$subpkgdir"/usr/lib/ \ || return 1 mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ || return 1 default_dev replaces="gobject-introspection" } md5sums="2dca065ef8ad95600040177a38b370fe gobject-introspection-1.30.0.tar.bz2 33dab841cc8892fe3b3dc9548ef07667 0001-repository-Fix-g_irepository_get_c_prefix.patch bd84cf5039f224d0535f5930c7b99366 0002-Skip-analysis-of-params-that-have-been-skip-d.patch b4ee37cce3aa251ead694c10c5ff96a3 0003-Bug-660338-Account-for-padding-in-struct-size-check.patch a36853f88ac252095312e63cd014888a 0007-giconstantinfo-Add-API-to-fix-memory-leak.patch 47321b30c92038439c36bcb051caebb2 0008-scanner-split-CC-environment-variable.patch"