aboutsummaryrefslogblamecommitdiffstats
path: root/community/spice-gtk/APKBUILD
blob: 875f01afc7e681046a5266d75d85da086781d2f3 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                    

           


                                           
                           

























                                 
         
              
                                                                   
                        

                                                                         

         
               
                               





















                                         


           
                                                 


         
                                    




                                              
                                         

                                                      
                                           
                                     

                                                                         

 

                                                                                                                                                                    
# 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"