OCaml 4.14.0 rebuild
[arch-packages.git] / gnome-desktop / trunk / PKGBUILD
blobd7d95161e066b1ab67ec5547f194f08349517ee4
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jan@archlinux.org>
4 pkgbase=gnome-desktop
5 pkgname=(gnome-desktop-common gnome-desktop gnome-desktop-4)
6 pkgver=42.4
7 pkgrel=1
8 epoch=1
9 pkgdesc="Library with common API for various GNOME modules"
10 url="https://gitlab.gnome.org/GNOME/gnome-desktop"
11 arch=(x86_64)
12 license=(GPL LGPL)
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)
17 options=(debug)
18 _commit=209373cc374d1c79762c2eeb276a9ff0b6a80d9c  # tags/42.4^0
19 source=("git+https://gitlab.gnome.org/GNOME/gnome-desktop.git#commit=$_commit")
20 sha256sums=('SKIP')
22 pkgver() {
23   cd $pkgbase
24   git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
27 prepare() {
28   cd $pkgbase
31 build() {
32   arch-meson $pkgbase build \
33     -D gnome_distributor="Arch Linux" \
34     -D gtk_doc=true \
35     -D debug_tools=false \
36     -D date_in_gnome_version=false
37   meson compile -C build
40 check() {
41   dbus-run-session xvfb-run -s '-nolisten local' \
42     meson test -C build --print-errorlogs
45 _pick() {
46   local p="$1" f d; shift
47   for f; do
48     d="$srcdir/$p/${f#$pkgdir/}"
49     mkdir -p "$(dirname "$d")"
50     mv "$f" "$d"
51     rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
52   done
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"
62   cd "$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() {
78   pkgdesc+=" (GTK3)"
79   depends=(gnome-desktop-common="$epoch:$pkgver-$pkgrel" gtk3)
80   provides=(libgnome-desktop-3.so)
82   mv gtk3/* "$pkgdir"
85 package_gnome-desktop-4() {
86   pkgdesc+=" (GTK4)"
87   depends=(gnome-desktop-common="$epoch:$pkgver-$pkgrel" gtk4)
88   provides=(libgnome-{bg,desktop,rr}-4.so)
90   mv gtk4/* "$pkgdir"
93 # vim:set sw=2 et: