aboutsummaryrefslogtreecommitdiffstats
path: root/main/spice/APKBUILD
blob: a98e1022e55738b159d9d34c5aed558e6fc0dbfb (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=spice
pkgver=0.13.3
pkgrel=4
pkgdesc="Implements the SPICE protocol"
url="http://www.spice-space.org/"
arch="all"
license="LGPLv2+"
depends=""
depends_dev="spice-protocol pixman-dev celt051-dev libressl-dev libxinerama-dev"
makedepends="$depends_dev alsa-lib-dev libjpeg-turbo-dev libxrandr-dev
	cyrus-sasl-dev libxfixes-dev python2-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/$pkgname-$pkgver.tar.bz2
	CVE-2017-7506.patch
	CVE-2018-10873.patch
	CVE-2019-3813.patch
	"

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

# secfixes:
#   0.13.3-r4:
#     - CVE-2019-3813
#   0.13.3-r3:
#     - CVE-2018-10873
#   0.13.3-r2:
#     - CVE-2017-7506

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/
}

sha512sums="63496fbd3df0fd453052cef8e1fb00a3a28f0105610676fdc4a58043cbc6da571ae4407701af2b817e410d05ce727d60d5ee0c93c8897231e25229897c51d95a  spice-0.13.3.tar.bz2
d752d6b72974f311c5f33c3e909d92cb67102869a4044e24dcd5e64056efefa96414936d2e673d4f1cf80913119cf601accd1a5c72ba1f90c350c402a0ae4e34  CVE-2017-7506.patch
fd6f797daa7ae9d518111c23c9b594f2ef4ccfeb3725373060668b244588681c147b9c407791a56b85e7abb438f7174a4de5a78cd3e8c90f018efb2bae9302b4  CVE-2018-10873.patch
a2e68a0f83eb0f9d9f4f8e2e5be84ef2301ee895ddda8d06406f3b1729d167e2bd9498d5c16214ec919f78e2f020d9f053d4c171b80d2f33fd7e1b5319958e24  CVE-2019-3813.patch"