summaryrefslogtreecommitdiff
path: root/repo/spice-gtk/spice-gtk.xibuild
blob: 4cdf6b7a1cc779ca586495ea935fb5ffc84eec8a (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
#!/bin/sh

NAME="spice-gtk"
DESC="GTK+ widget for SPICE clients"

MAKEDEPS=" meson gstreamer gst-plugins-base spice-protocol json-glib gtk3 usbredir libusb asciidoc lz4 opus glib libsasl gobject-introspection vala libjpeg-turbo cairo zlib pixman openssl libx11 libepoxy libva python-six python-parsing perl acl polkit"

PKG_VER=0.40
SOURCE="https://www.spice-space.org/download/gtk/spice-gtk-$PKG_VER.tar.xz"

ADDITIONAL="
disable-test-relying-on-usb.patch
fix-pkgconfig-version.patch
"

prepare () {
    apply_patches
}

build() {
	meson --prefix=/usr \
		-Dgtk=enabled \
		-Dwebdav=disabled \
		-Dbuiltin-mjpeg=false \
		-Dusbredir=enabled \
		-Dpolkit=enabled\
		-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="$PKG_DEST" meson install --no-rebuild -C output
}