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/"
12 depends=(gtk4 pangomm-2.48)
13 makedepends=(git meson mm-common glibmm-2.68-docs cairomm-1.16-docs
15 checkdepends=(xorg-server-xvfb)
17 _commit=7f4f5383de930f5e486001d313ce38834b455787 # tags/4.6.1^0
18 source=("git+https://gitlab.gnome.org/GNOME/gtkmm.git#commit=$_commit")
23 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
31 arch-meson gtkmm build -D maintainer-mode=true
32 meson compile -C build
36 xvfb-run -s '-nolisten local' \
37 meson test -C build --print-errorlogs
41 local p="$1" f d; shift
43 d="$srcdir/$p/${f#$pkgdir/}"
44 mkdir -p "$(dirname "$d")"
46 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
51 depends+=(libsigc-3.0.so libglibmm-2.68.so libcairomm-1.16.so
53 provides=(libgtkmm-4.0.so)
55 meson install -C build --destdir "$pkgdir"
58 _pick docs usr/share/{devhelp,doc}
61 package_gtkmm-4.0-docs() {
62 pkgdesc+=" (documentation)"