# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=spice pkgver=0.14.1 pkgrel=3 pkgdesc="Implements the SPICE protocol" url="http://www.spice-space.org/" arch="all" license="LGPL-2.0-or-later" depends="" depends_dev="spice-protocol pixman-dev celt051-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 openssl-dev" subpackages="$pkgname-dev $pkgname-server" source="https://www.spice-space.org/download/releases/spice-server/spice-$pkgver.tar.bz2 0001-Disable-failing-tests.patch " builddir="$srcdir/$pkgname-$pkgver" # secfixes: # 0.14.1-r0: # - CVE-2018-10873 # 0.12.8-r4: # - CVE-2017-7506 # 0.12.8-r3: # - CVE-2016-9577 # - CVE-2016-9578 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 \ --enable-celt051 make WARN_CFLAGS='' } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install } server() { pkgdesc="Server library for SPICE" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/*server.so.* "$subpkgdir"/usr/lib/ } sha512sums="2c0b4fbcb68c76bc0404a807f28c9645a30c6b88e81d2bc574d63b036778a299cebc0ae12aa72f2e1496f66cbf414325125948d440541a40e1b9e53b8956542d spice-0.14.1.tar.bz2 7457d76ba056565de5b27d3fe0dd5969afbfc8e85a4f43345d491cdd79690eeb81c97d1012dba61562dcc240cac45a58ddb26d4a5ebdc71f4f5e191c5064f49f 0001-Disable-failing-tests.patch"