aboutsummaryrefslogtreecommitdiffstats
path: root/community/gnome-remote-desktop/APKBUILD
blob: d9ac9a0049f7e20214aa6435bacd0905b3706752 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-remote-desktop
pkgver=0.1.8
pkgrel=0
pkgdesc="GNOME Remote Desktop - remove desktop server"
url="https://gitlab.gnome.org/jadahl/gnome-remote-desktop"
arch="all"
license="GPL-2.0-or-later"
makedepends="meson glib-dev pipewire-dev elogind-dev libsecret-dev libnotify-dev
	libvncserver-dev"
checkdepends="bash xvfb-run dbus py3-dbus py3-gobject3 mutter gnome-settings-daemon
	mesa-dri-gallium adwaita-icon-theme"
options="!check" # Needs a full fat GNOME session
source="https://gitlab.gnome.org/jadahl/gnome-remote-desktop/-/archive/$pkgver/gnome-remote-desktop-$pkgver.tar.gz"

prepare() {
	default_prepare

	# We don't need systemd services...
	sed '/systemd_dep/d' -i meson.build
	# Fix Bash location
	sed 's|usr/bin/bash|bin/bash|' -i tests/vnc-test-runner.sh
}

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		-Dsystemd_user_unit_dir=DELETEME \
		. output
	ninja -C output
}

check() {
	mkdir -p /tmp/runtimedir
	GSETTINGS_SCHEMA_DIR=output/src/ XDG_RUNTIME_DIR=/tmp/runtimedir ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
	rm -rf "$pkgdir"/usr/DELETEME
}

sha512sums="bcd114e3f533d5421deb0f75f4ff3202491e75490ba95c70b75506390d5061565d4add77a84c2d1edd42dcf840003a906a5aca534dfc804e6dc0ba53e9d0791d  gnome-remote-desktop-0.1.8.tar.gz"