1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jan@archlinux.org>
13 pkgdesc="Library with common API for various GNOME modules"
14 url="https://gitlab.gnome.org/GNOME/gnome-desktop"
24 gsettings-desktop-schemas
36 checkdepends=(xorg-server-xvfb)
37 _commit=97c0344b3ba955bb6f6fe74ca03cc399a81acaa5 # tags/44.0^0
38 source=("git+https://gitlab.gnome.org/GNOME/gnome-desktop.git#commit=$_commit")
43 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
56 arch-meson $pkgbase build "${meson_options[@]}"
57 meson compile -C build
61 dbus-run-session xvfb-run -s '-nolisten local' \
62 meson test -C build --print-errorlogs
66 local p="$1" f d; shift
68 d="$srcdir/$p/${f#$pkgdir/}"
69 mkdir -p "$(dirname "$d")"
71 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
75 package_gnome-desktop-common() {
76 pkgdesc+=" (common files)"
79 gsettings-desktop-schemas
87 meson install -C build --destdir "$pkgdir"
91 _pick gtk3 usr/include/gnome-desktop-3.0
92 _pick gtk3 usr/lib/libgnome-desktop-3.so*
93 _pick gtk3 usr/lib/pkgconfig/gnome-desktop-3.0.pc
94 _pick gtk3 usr/lib/girepository-1.0/GnomeDesktop-3.0.typelib
95 _pick gtk3 usr/share/gir-1.0/GnomeDesktop-3.0.gir
97 _pick gtk4 usr/include/gnome-desktop-4.0
98 _pick gtk4 usr/lib/libgnome-*-4.so*
99 _pick gtk4 usr/lib/pkgconfig/gnome-*-4.pc
100 _pick gtk4 usr/lib/girepository-1.0/Gnome*-4.0.typelib
101 _pick gtk4 usr/share/gir-1.0/Gnome*-4.0.gir
104 package_gnome-desktop() {
107 gnome-desktop-common="$epoch:$pkgver-$pkgrel"
110 provides=(libgnome-desktop-3.so)
115 package_gnome-desktop-4() {
118 gnome-desktop-common="$epoch:$pkgver-$pkgrel"
121 provides=(libgnome-{bg,desktop,rr}-4.so)
126 # vim:set sw=2 sts=-1 et: