1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
13 pkgdesc="GObject-based multi-platform GUI toolkit"
14 url="https://www.gtk.org/"
62 _commit=013b629a2e5420cc01647f859226eb1a37ebe661 # tags/3.24.37^0
64 "git+https://gitlab.gnome.org/GNOME/gtk.git#commit=$_commit"
65 gtk-query-immodules-3.0.hook
68 'a0319b6795410f06d38de1e8695a9bf9636ff2169f40701671580e60a108e229')
72 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
81 -D broadway_backend=true
82 -D cloudproviders=true
90 CFLAGS+=" -DG_DISABLE_CAST_CHECKS"
91 arch-meson gtk build "${meson_options[@]}"
92 meson compile -C build
96 local p="$1" f d; shift
98 d="$srcdir/$p/${f#$pkgdir/}"
99 mkdir -p "$(dirname "$d")"
101 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
106 depends+=(gtk-update-icon-cache)
107 optdepends=('evince: Default print preview command')
114 conflicts=(gtk3-print-backends)
115 replaces=("gtk3-print-backends<=3.22.26-1")
118 meson install -C build --destdir "$pkgdir"
120 install -Dm644 /dev/stdin "$pkgdir/usr/share/gtk-3.0/settings.ini" <<END
122 gtk-icon-theme-name = Adwaita
123 gtk-theme-name = Adwaita
124 gtk-font-name = Cantarell 11
127 install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 gtk-query-immodules-3.0.hook
131 _pick demo usr/bin/gtk3-{demo,demo-application,icon-browser,widget-factory}
132 _pick demo usr/share/applications/gtk3-{demo,icon-browser,widget-factory}.desktop
133 _pick demo usr/share/glib-2.0/schemas/org.gtk.{Demo,exampleapp}.gschema.xml
134 _pick demo usr/share/icons/hicolor/*/apps/gtk3-{demo,widget-factory}[-.]*
135 _pick demo usr/share/man/man1/gtk3-{demo,demo-application,icon-browser,widget-factory}.1
137 _pick docs usr/share/gtk-doc
139 # Built by GTK 4, shared with GTK 3
140 rm usr/bin/gtk-update-icon-cache
141 rm usr/share/man/man1/gtk-update-icon-cache.1
144 package_gtk3-demos() {
145 pkgdesc+=" (demo applications)"
150 package_gtk3-docs() {
151 pkgdesc+=" (documentation)"
156 # vim:set sw=2 sts=-1 et: