1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jan@archlinux.org>
5 pkgname=(gnome-desktop-common gnome-desktop gnome-desktop-4)
9 pkgdesc="Library with common API for various GNOME modules"
10 url="https://gitlab.gnome.org/GNOME/gnome-desktop"
13 makedepends=(gobject-introspection git meson gtk-doc yelp-tools
14 gsettings-desktop-schemas gtk3 gtk4 xkeyboard-config iso-codes
15 libseccomp bubblewrap systemd libxkbcommon)
16 checkdepends=(xorg-server-xvfb)
18 _commit=209373cc374d1c79762c2eeb276a9ff0b6a80d9c # tags/42.4^0
19 source=("git+https://gitlab.gnome.org/GNOME/gnome-desktop.git#commit=$_commit")
24 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
32 arch-meson $pkgbase build \
33 -D gnome_distributor="Arch Linux" \
35 -D debug_tools=false \
36 -D date_in_gnome_version=false
37 meson compile -C build
41 dbus-run-session xvfb-run -s '-nolisten local' \
42 meson test -C build --print-errorlogs
46 local p="$1" f d; shift
48 d="$srcdir/$p/${f#$pkgdir/}"
49 mkdir -p "$(dirname "$d")"
51 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
55 package_gnome-desktop-common() {
56 pkgdesc+=" (common files)"
57 depends=(gsettings-desktop-schemas xkeyboard-config iso-codes libseccomp
58 bubblewrap systemd libxkbcommon)
60 meson install -C build --destdir "$pkgdir"
64 _pick gtk3 usr/include/gnome-desktop-3.0
65 _pick gtk3 usr/lib/libgnome-desktop-3.so*
66 _pick gtk3 usr/lib/pkgconfig/gnome-desktop-3.0.pc
67 _pick gtk3 usr/lib/girepository-1.0/GnomeDesktop-3.0.typelib
68 _pick gtk3 usr/share/gir-1.0/GnomeDesktop-3.0.gir
70 _pick gtk4 usr/include/gnome-desktop-4.0
71 _pick gtk4 usr/lib/libgnome-*-4.so*
72 _pick gtk4 usr/lib/pkgconfig/gnome-*-4.pc
73 _pick gtk4 usr/lib/girepository-1.0/Gnome*-4.0.typelib
74 _pick gtk4 usr/share/gir-1.0/Gnome*-4.0.gir
77 package_gnome-desktop() {
79 depends=(gnome-desktop-common="$epoch:$pkgver-$pkgrel" gtk3)
80 provides=(libgnome-desktop-3.so)
85 package_gnome-desktop-4() {
87 depends=(gnome-desktop-common="$epoch:$pkgver-$pkgrel" gtk4)
88 provides=(libgnome-{bg,desktop,rr}-4.so)