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=44bb79e8ee6e86bdc2e6275b8b9c3bded7ec0b3a # tags/4.4.0^0
18 source=("git+https://gitlab.gnome.org/GNOME/gtkmm.git#commit=$_commit")
23 git describe --tags | sed 's/-/+/g'
31 arch-meson gtkmm build -D maintainer-mode=true
32 meson compile -C build
36 xvfb-run -s '-nolisten local' meson test -C build --print-errorlogs
40 depends+=(libsigc-3.0.so libglibmm-2.68.so libcairomm-1.16.so
42 provides=(libgtkmm-4.0.so)
44 meson install -C build --destdir "$pkgdir"
47 mkdir -p docs/usr/share
48 mv -t docs/usr/share "$pkgdir"/usr/share/{devhelp,doc}
51 package_gtkmm-4.0-docs() {
52 pkgdesc+=" (documentation)"
56 mv -t "$pkgdir" docs/*