1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Fabian Bornschein <fabiscafe-cat-mailbox-dog-org>
4 pkgname=gnome-remote-desktop
7 pkgdesc="GNOME Remote Desktop server"
8 url="https://wiki.gnome.org/Projects/Mutter/RemoteDesktop"
41 _commit=66e0fa21c87f82d7aaf71846dc408fb832d43146 # tags/44.1^0
42 source=("git+https://gitlab.gnome.org/GNOME/gnome-remote-desktop.git#commit=$_commit")
47 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
59 arch-meson $pkgname build "${meson_options[@]}"
60 meson compile -C build
64 export XDG_CONFIG_HOME="$PWD/config-dir" XDG_RUNTIME_DIR="$PWD/runtime-dir"
65 mkdir -p -m 700 "$XDG_CONFIG_HOME" "$XDG_RUNTIME_DIR"
67 export GSETTINGS_SCHEMA_DIR="$PWD/build/src" GSETTINGS_BACKEND=keyfile
68 glib-compile-schemas "$GSETTINGS_SCHEMA_DIR"
70 openssl req -new -newkey rsa:4096 -days 720 -nodes -x509 \
71 -subj /C=DE/ST=NONE/L=NONE/O=GNOME/CN=gnome.org \
72 -keyout tls.key -out tls.crt
74 gsettings set org.gnome.desktop.remote-desktop.rdp tls-cert "$PWD/tls.crt"
75 gsettings set org.gnome.desktop.remote-desktop.rdp tls-key "$PWD/tls.key"
76 gsettings set org.gnome.desktop.remote-desktop.rdp screen-share-mode extend
77 gsettings set org.gnome.desktop.remote-desktop.rdp enable true
78 gsettings set org.gnome.desktop.remote-desktop.vnc enable true
86 trap "kill $_p1 $_p2; wait" EXIT
88 export TCTI=tabrmd:bus_type=session
90 meson test -C build --print-errorlogs -t 3
94 dbus-run-session bash -c "$(declare -f _check); _check"
98 meson install -C build --destdir "$pkgdir"
101 # vim:set sw=2 sts=-1 et: