aboutsummaryrefslogtreecommitdiffstats
path: root/community/spice-gtk/APKBUILD
blob: 875f01afc7e681046a5266d75d85da086781d2f3 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=spice-gtk
pkgver=0.37
pkgrel=0
pkgdesc="A GTK+ widget for SPICE clients"
url="http://spice-space.org/page/Spice-Gtk"
arch="all"
license="LGPL-2.0-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
	"
options="suid"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-tools
	spice-glib:glib"
source="https://www.spice-space.org/download/gtk/$pkgname-$pkgver.tar.bz2
	disable-test-relying-on-usb.patch"

build() {
	meson \
		--prefix=/usr \
		-Dgtk=enabled \
		-Dwebdav=disabled \
		-Dpulse=disabled \
		-Dbuiltin-mjpeg=false \
		-Dusbredir=enabled \
		-Dpolkit=disabled \
		-Dpie=true \
		-Dintrospection=enabled \
		-Dvapi=enabled \
		-Dlz4=enabled \
		-Dsasl=enabled \
		-Dcelt051=disabled \
		-Dopus=enabled \
		-Dsmartcard=disabled \
		-Dgtk_doc=disabled \
		-Dcoroutine=gthread \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

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="a0a20bc6f25337d86e57fe1fc9586c4cc84457fc8c38cdcc5a728990a69018da0fca3ab5aa63349786b5a7508c82b716c94803eefb3495cffb7df4526db2d029  spice-gtk-0.37.tar.bz2
fcb2eed3ccfdba422338aa292c56b61d5aa0b83e60feed8b042b44281d0090f7ec82a853332cf5d36338b5cc097031f5af25457866f11f2ed8a4c92f4372b863  disable-test-relying-on-usb.patch"