# Contributor: Rasmus Thomsen # Contributor: Natanael Copa # Maintainer: Rasmus Thomsen pkgname=gobject-introspection pkgver=1.66.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-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 musl-time64.patch " build() { abuild-meson . output meson compile ${JOBS:+-j ${JOBS}} -C output } check() { meson test --no-rebuild -v -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } 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="ea1e20cd94ff8af3572f417f35e96648ffc3e94a91d4e4c81adf99bb0f408ac21ecf40990f9dbd5f2e0f4e83360286ca5db88dbc45bd59289596a324acf7df3d gobject-introspection-1.66.1.tar.xz a55df8fbb8d27d073bbab7e3bd2ca5e272c3fca2a3e144207d4cac06dd90f51443373b077fa64543887e2d5da4bc017bd5245473b83dd0ed551a5a437eec9241 musl-time64.patch"