aboutsummaryrefslogtreecommitdiffstats
path: root/main/spice-gtk/APKBUILD
blob: 9c5d68339a24ad073f8b7f90b56a2a1929d08a1b (plain) (blame)
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.32
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 python-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="09930abb5ebe1b25b0f6988eb5716f98  spice-gtk-0.32.tar.bz2"
sha256sums="4c48f4099335e0cd100854162a44070d34ed73dfcad2115e80c075013b49ee02  spice-gtk-0.32.tar.bz2"
sha512sums="6c677c814b9256404effdab177695e186342f81aa11cfe8ff49df8d0ee19b7c7ed51468b75b32318a763c826a46832c9dfe93ba8dc4d1ef7d5943b7db2160f45  spice-gtk-0.32.tar.bz2"