# Contributor: Natanael Copa # Maintainer: Natanael Copa setvar pkgname = 'spice' setvar pkgver = '0.12.8' setvar pkgrel = '4' setvar pkgdesc = ""Implements the SPICE protocol"" setvar url = ""http://www.spice-space.org/"" setvar arch = ""all"" setvar license = ""LGPLv2+"" setvar depends = """" setvar depends_dev = ""spice-protocol pixman-dev celt051-dev libressl-dev libxinerama-dev"" setvar 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"" setvar subpackages = ""$pkgname-dev $pkgname-server"" setvar source = ""http://www.spice-space.org/download/releases/$pkgname-$pkgver.tar.bz2 CVE-2016-9577.patch CVE-2016-9578-1.patch CVE-2016-9578-2.patch CVE-2017-7506.patch "" setvar builddir = ""$srcdir/$pkgname-$pkgver"" # secfixes: # 0.12.8-r4: # - CVE-2017-7506 # 0.12.8-r3: # - CVE-2016-9577 # - CVE-2016-9578 proc 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 make -C spice-common WARN_CFLAGS='' make WARN_CFLAGS='' } proc check { cd $builddir make check } proc package { cd $builddir make DESTDIR="$pkgdir" install } proc server { setvar pkgdesc = ""Server library for SPICE"" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/*server.so.* "$subpkgdir"/usr/lib/ } setvar sha512sums = ""6485d3522af1cde93d2c0abad7f7ef9f2e4d3e5049314fb93b6dd4b86e33d67d353a3ff42a355c8fd991bad447bbde1e6320c083bbc6f02b576bd9cebe7269ed spice-0.12.8.tar.bz2 51c38766c9582376c95e63515d0c009f8c3e95cc03a1751c01974cab9295159eb74d35a08157e1eaa44e99a7bb5b2fdad83d9a8c7e38850741d9b5d534133bc7 CVE-2016-9577.patch ffae544784bd98da10cd86db3f5c5753c4833aee6b16e4e671160e92103d84a3dbc4da9f132f35e3b3b71a515e09b68b689c49e5f4265363b9eef39c42d70719 CVE-2016-9578-1.patch 62ba3844fa11c65eba7d013c209962e39af051885bdf55943410f9122d99135ce30495263f34580ce959355eb60a6026125b181f6b10f0bfab19bbd4ff54f92b CVE-2016-9578-2.patch 8a7387fd297aa3d59e38af650f3f12d9b89e46283e2ceaf53ca6e01db6db3c2ac0df164fde05decc4a0d8a05296d3f31195e86e383029804e91b23c84e1292a2 CVE-2017-7506.patch""