# Maintainer: Natanael Copa pkgname=gobject-introspection pkgver=1.50.0 pkgrel=0 pkgdesc="Introspection system for GObject-based libraries" url="http://live.gnome.org/GObjectIntrospection" arch="all" license="LGPL GPL" depends_dev="python2 glib-dev libffi-dev cairo-dev libtool" makedepends="$depends_dev flex bison python2-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 } 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="5af8d724f25d0c9cfbe6df41b77e5dc0 gobject-introspection-1.50.0.tar.xz" sha256sums="1c6597c666f543c70ef3d7c893ab052968afae620efdc080c36657f4226337c5 gobject-introspection-1.50.0.tar.xz" sha512sums="cb108cf3d49743e1686fe4ae99f2360799bc8825ad97bf0b97e097b3f89e2771079593de0f497a9e5b9cff892f6fbf870834a6c4d13f11bcde99162e9388ecfa gobject-introspection-1.50.0.tar.xz"