1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
4 pkgbase=gobject-introspection
7 gobject-introspection-runtime
12 pkgdesc="Introspection system for GObject-based libraries"
13 url="https://wiki.gnome.org/Projects/GObjectIntrospection"
27 _commit=1565805460c3fd65f8630debd0337ec0e33ee2e7 # tags/1.76.1^0
29 "git+https://gitlab.gnome.org/GNOME/gobject-introspection.git#commit=$_commit"
30 "git+https://gitlab.gnome.org/GNOME/glib.git?signed#tag=$_glibver"
34 validpgpkeys=('923B7025EE03C1C59F42684CF0942E894B2EAFA0' # Philip Withnall <philip@tecnocode.co.uk>
35 'D4C501DA48EB797A081750939449C2F50996635F') # Marco Trevisan <marco@trevi.me>
39 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
48 -D glib_src_dir="$srcdir/glib"
52 arch-meson $pkgbase build "${meson_options[@]}"
53 meson compile -C build
57 meson test -C build --print-errorlogs
61 local p="$1" f d; shift
63 d="$srcdir/$p/${f#$pkgdir/}"
64 mkdir -p "$(dirname "$d")"
66 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
70 package_gobject-introspection() {
72 "gobject-introspection-runtime=$pkgver-$pkgrel"
77 meson install -C build --destdir "$pkgdir"
81 python -m compileall -d /usr/lib/$pkgbase usr/lib/$pkgbase
82 python -O -m compileall -d /usr/lib/$pkgbase usr/lib/$pkgbase
84 _pick libg usr/include/gobject-introspection-1.0
85 _pick libg usr/lib/libgirepository-1.0.so*
86 _pick libg usr/lib/pkgconfig/gobject-introspection*-1.0.pc
87 _pick libg usr/lib/girepository-1.0/GIRepository-2.0.typelib
88 _pick libg usr/share/gir-1.0/GIRepository-2.0.gir
89 _pick libg usr/share/gtk-doc
91 _pick runtime usr/lib/girepository-1.0
94 package_gobject-introspection-runtime() {
96 depends=("libgirepository=$pkgver-$pkgrel")
98 mv runtime/* "$pkgdir"
101 package_libgirepository() {
102 pkgdesc+=" - runtime library"
105 libg{lib,object,module,io}-2.0.so
107 provides=(libgirepository-1.0.so)
112 # vim:set sw=2 sts=-1 et: