# Contributor: Rasmus Thomsen # Contributor: Natanael Copa # Maintainer: Rasmus Thomsen pkgname=gobject-introspection pkgver=1.62.0 pkgrel=0 pkgdesc="Introspection system for GObject-based libraries" url="https://wiki.gnome.org/action/show/Projects/GObjectIntrospection" arch="all" license="LGPL-2.0-or-later AND GPL-2.0-or-later AND MIT" depends_dev="python3 cairo-dev libtool" makedepends="$depends_dev glib-dev libffi-dev flex bison python3-dev meson" subpackages="$pkgname-doc $pkgname-dev" replaces="libgirepository" checkdepends="sed" source="https://download.gnome.org/sources/gobject-introspection/${pkgver%.*}/gobject-introspection-$pkgver.tar.xz" build() { meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --buildtype=release \ . output ninja -C output } check() { ninja -C output test } package() { DESTDIR="$pkgdir" ninja -C output 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="b460a95fd7a323e9b0c9a45e680ebe98bbae7632abfa53b3e0b0ec050775cab17dde693314d6d4f8e93614c32b5587f8ce0b4a4c9ee9ba46c029ce029014e638 gobject-introspection-1.62.0.tar.xz"