# Maintainer: Natanael Copa pkgname=gobject-introspection pkgver=1.60.1 pkgrel=0 pkgdesc="Introspection system for GObject-based libraries" url="https://wiki.gnome.org/action/show/Projects/GObjectIntrospection" arch="all" license="LGPL-2.0+, GPL-2.0+, MIT" depends_dev="python3 cairo-dev libtool" makedepends="$depends_dev glib-dev libffi-dev flex bison python3-dev" subpackages="$pkgname-doc $pkgname-dev" replaces="libgirepository" checkdepends="sed" source="https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz" build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --disable-static \ --with-python=python3 make V=1 } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install } dev() { mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/share "$subpkgdir"/usr/ mv "$pkgdir"/usr/lib/gobject-introspection "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ default_dev replaces="gobject-introspection" } sha512sums="01adbeffee08ff6487f11a303fd7a59a99c36714dce21be9bbae7fd2bf8f080665e830bc3a47566140a6081dc74f6c2f8d8232286759b761f70493545a9d90ea gobject-introspection-1.60.1.tar.xz"