# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=spice pkgver=0.13.3 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 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 " builddir="$srcdir"/$pkgname-$pkgver 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"