# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=spice pkgver=0.14.2 pkgrel=1 pkgdesc="Implements the SPICE protocol" url="http://www.spice-space.org/" arch="all" license="LGPL-2.0-or-later" depends_dev="spice-protocol pixman-dev libxinerama-dev" makedepends="$depends_dev alsa-lib-dev libjpeg-turbo-dev libxrandr-dev lz4-dev cyrus-sasl-dev libxfixes-dev python3-dev bash cegui06-dev py3-parsing py3-six glib-dev opus-dev openssl-dev gstreamer-dev gst-plugins-base-dev automake autoconf libtool" subpackages="$pkgname-dev $pkgname-server" source="https://www.spice-space.org/download/releases/spice-server/spice-$pkgver.tar.bz2 0001-Disable-failing-tests-on-some-arches.patch " # secfixes: # 0.14.1-r4: # - CVE-2019-3813 # 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() { autoreconf -vif 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 \ --disable-celt051 \ --enable-lz4 \ --enable-opus \ --enable-gstreamer=1.0 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="1093b618ea4a7ff31944429ce2903abecfc8d20c35f2d9c8c837a6e053ee429c0115e40665542637a717869209523ac05d15cdb5e77563102d5d3915e4aaaf76 spice-0.14.2.tar.bz2 0ce5c4077a436a8895452557529d4ad118a578b8e6d157e1d8453105b7456496a0f85da0821afafbae7359a3fd6fe46d47de3bf639fa9bdb9a535ce68ab17dfa 0001-Disable-failing-tests-on-some-arches.patch"