aboutsummaryrefslogtreecommitdiffstats
path: root/main/spice-gtk/APKBUILD
blob: 28e37dfbb5ae861d73cc0f43542f07082ea476d4 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=spice-gtk
pkgver=0.33
pkgrel=1
pkgdesc="A GTK+ widget for SPICE clients"
url="http://spice-space.org/page/Spice-Gtk"
arch="all"
license="LGPLv2+"
depends=""
depends_dev="gtk+3.0-dev celt051-dev polkit-dev libxrandr-dev libressl-dev
	cyrus-sasl-dev gst-plugins-base1-dev libjpeg-turbo-dev zlib-dev
	acl-dev lz4-dev"
makedepends="$depends_dev bash usbutils python2-dev eudev-dev phodav-dev
	usbredir-dev libusb-dev libsoup-dev spice-protocol
	polkit-dev py-parsing gobject-introspection-dev
	"
install=""
options="suid"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-tools
	spice-glib:glib"
source="http://www.spice-space.org/download/gtk/$pkgname-$pkgver.tar.bz2"

builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--with-gtk=3.0 \
		--with-audio=gstreamer \
		--enable-smartcard=no \
		--enable-usbredir=yes \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make -j1 DESTDIR="$pkgdir" install || return 1
}

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

glib() {
	pkgdesc=""
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/*-glib-*.so* \
		"$pkgdir"/usr/lib/*controller.so.* \
		"$subpkgdir"/usr/lib/ || return 1
}

md5sums="19e1b9aa6c59cab776ba5aa633491b7e  spice-gtk-0.33.tar.bz2"
sha256sums="7daf33b786ab8ebc9fe6e7b11745100ee1ab66e61a5811d1d5aabe4d66eaaf39  spice-gtk-0.33.tar.bz2"
sha512sums="ee5750194057a7f568641f6382d6969b67dc7271b4d13037570b79cdecd70a7eeb457ad349d3ed8e576f1fbd9701fac7d24607d5cbde8af0e030433b347abc80  spice-gtk-0.33.tar.bz2"