# Maintainer: Natanael Copa pkgname=gobject-introspection pkgver=1.37.6 pkgrel=0 pkgdesc="Introspection system for GObject-based libraries" url="http://live.gnome.org/GObjectIntrospection" arch="all" license="LGPL GPL" depends_dev="python glib-dev libffi-dev cairo-dev libtool" makedepends="$depends_dev flex bison python-dev" depends= replaces="libgirepository" source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz " # 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 \ --build=$CBUILD \ --host=$CHOST \ --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="2dc3965fa9ec096da48e307e63621cdb gobject-introspection-1.37.6.tar.xz" sha256sums="6eebb4f6981be2f41dba184f27319d6448a9144b417b5bdf7e579c8ea0a340cf gobject-introspection-1.37.6.tar.xz" sha512sums="58dd1b4569534072e705afd024569eaea1a48121c57a0feeb1198330c289460bc3e3854754ec51f0a3a5a292d26eadd1cfa8968ee35a33d0c4256151aa144387 gobject-introspection-1.37.6.tar.xz"