aboutsummaryrefslogtreecommitdiffstats
path: root/community/spice-gtk/APKBUILD
blob: 900e0ddd3cc8f3eff44049c4e12ee44af6f1c209 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=spice-gtk
pkgver=0.39
pkgrel=0
pkgdesc="GTK+ widget for SPICE clients"
url="https://www.spice-space.org/spice-gtk.html"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
	meson
	gstreamer-dev
	gst-plugins-base-dev
	spice-protocol
	json-glib-dev
	gtk+3.0-dev
	usbredir-dev
	libusb-dev
	asciidoc
	lz4-dev
	opus-dev
	glib-dev
	cyrus-sasl-dev
	gobject-introspection-dev
	vala
	libjpeg-turbo-dev
	cairo-dev
	zlib-dev
	pixman-dev
	openssl-dev
	libx11-dev
	libepoxy-dev
	libva-dev
	py3-six
	py3-parsing
	perl
	"
options="suid"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-tools
	spice-glib:glib"
source="https://www.spice-space.org/download/gtk/spice-gtk-$pkgver.tar.xz
	disable-test-relying-on-usb.patch
	fix-pkgconfig-version.patch
	"

build() {
	abuild-meson \
		-Dgtk=enabled \
		-Dwebdav=disabled \
		-Dbuiltin-mjpeg=false \
		-Dusbredir=enabled \
		-Dpolkit=disabled \
		-Dpie=true \
		-Dintrospection=enabled \
		-Dvapi=enabled \
		-Dlz4=enabled \
		-Dsasl=enabled \
		-Dopus=enabled \
		-Dsmartcard=disabled \
		-Dgtk_doc=disabled \
		-Dcoroutine=gthread \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

tools() {
	pkgdesc="$pkgdesc (tooling)"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

glib() {
	pkgdesc="$pkgdesc (glib library)"
	mkdir -p "$subpkgdir"/usr/lib \
		"$subpkgdir"/usr/lib/girepository-1.0/
	mv "$pkgdir"/usr/lib/*-glib-*.so* \
		"$subpkgdir"/usr/lib/
	mv "$pkgdir"/usr/lib/girepository-1.0/SpiceClientGLib-*.typelib \
		"$subpkgdir"/usr/lib/girepository-1.0/
}

sha512sums="ff0f3ca6b10a2c415f2fa8d61464c5710aaa2a46c2c83909f146fa45f01151e756d9c3d79cb162dd3d0c1279b6ef55a67fc5c1266af2cb5b46ac1eaa0254c8d2  spice-gtk-0.39.tar.xz
49af336eb9c4a785b557b3e0e4e9781bccc9fbfd85d2d98bff6bd57c80d9e49f17b27915c720f49da8670f7ab197496f5a7e2a85cc478a9cb0051b0a11a2bf5f  disable-test-relying-on-usb.patch
0126de8c1dad557d33c3e70c8c281d4515ef54df99ac282046a7b543cfd765fca7b94ed7f1b27ae48f3b62492936feb74e59e5c653f193515d07267497b740d7  fix-pkgconfig-version.patch"