1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
5 pkgname=(gtkmm-4.0 gtkmm-4.0-docs)
8 pkgdesc="C++ bindings for GTK 4"
9 url="https://www.gtkmm.org/"
24 checkdepends=(xorg-server-xvfb)
25 _commit=301f8b2674350f23708f71b98c9a3fc94c0c7f80 # tags/4.10.0^0
26 source=("git+https://gitlab.gnome.org/GNOME/gtkmm.git#commit=$_commit")
31 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
39 arch-meson gtkmm build -D maintainer-mode=true
40 meson compile -C build
44 xvfb-run -s '-nolisten local' \
45 meson test -C build --print-errorlogs
49 local p="$1" f d; shift
51 d="$srcdir/$p/${f#$pkgdir/}"
52 mkdir -p "$(dirname "$d")"
54 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
65 provides=(libgtkmm-4.0.so)
67 meson install -C build --destdir "$pkgdir"
70 _pick docs usr/share/{devhelp,doc}
73 package_gtkmm-4.0-docs() {
74 pkgdesc+=" (documentation)"
81 # vim:set sw=2 sts=-1 et: