aboutsummaryrefslogtreecommitdiffstats
path: root/main/spice/APKBUILD
blob: 1c621c5a513ada3be07a6cc96ad1417520f57f7d (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=spice
pkgver=0.12.7
pkgrel=1
pkgdesc="Implements the SPICE protocol"
url="http://www.spice-space.org/"
arch="all"
license="LGPLv2+"
depends=""
depends_dev="spice-protocol pixman-dev celt051-dev openssl-dev libxinerama-dev"
makedepends="$depends_dev alsa-lib-dev libjpeg-turbo-dev libxrandr-dev
	cyrus-sasl-dev libxfixes-dev python-dev bash cegui06-dev py-parsing
	py-six glib-dev opus-dev"
install=""
subpackages="$pkgname-dev $pkgname-server"
source="http://www.spice-space.org/download/releases/spice-$pkgver.tar.bz2
	CVE-2017-7506.patch"

_builddir="$srcdir"/spice-$pkgver

# secfixes:
#   0.12.7-r1:
#     - CVE-2017-7506

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-gui \
		--enable-client \
		--disable-smartcard \
		--enable-opus \
		|| return 1
	make -C spice-common WARN_CFLAGS='' || return 1
	make WARN_CFLAGS='' || return 1
}

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

server() {
	pkgdesc="Server library for SPICE"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/*server.so.* "$subpkgdir"/usr/lib/
}

md5sums="28d4294e6d055de3b6ce5b8f2b7ca03b  spice-0.12.7.tar.bz2
47eef95ef416029b88e0d38ae9bf1c30  CVE-2017-7506.patch"
sha256sums="1c8e96cb9e833e23372e2f461508135903b697fd8c6daff565e9e87f6d2f6aba  spice-0.12.7.tar.bz2
ec75c6a3c8a104aef22c040d945b52ecd31735e35a3f95078da5656bfc721704  CVE-2017-7506.patch"
sha512sums="a740d500d0ccad3edd1f2f71e51c5a120d6ae98e44125f33870c12f5d1eeb30b809e588d05b2d0cadb4216e889b38e57d2278916817538311b875ff22e3b31ae  spice-0.12.7.tar.bz2
8a7387fd297aa3d59e38af650f3f12d9b89e46283e2ceaf53ca6e01db6db3c2ac0df164fde05decc4a0d8a05296d3f31195e86e383029804e91b23c84e1292a2  CVE-2017-7506.patch"