# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=spice pkgver=0.12.6 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 openssl-dev libxinerama-dev" makedepends="$depends_dev alsa-lib-dev libjpeg-turbo-dev libxrandr-dev cyrus-sasl-dev libxfixes-dev python-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/spice-$pkgver.tar.bz2 " _builddir="$srcdir"/spice-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } 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/ } md5sums="605a8c8ea80bc95076c4b3539c6dd026 spice-0.12.6.tar.bz2" sha256sums="f148ea30135bf80a4f465ce723a1cd6d4ccb34c098b6298a020b378ace8569b6 spice-0.12.6.tar.bz2" sha512sums="877d9c447a09055c61db7839ae1a2bbd97ab1178d8fd30fff83883064f8a2f269479649e696732095833ed3fda2d0cc0cbe2a420decb89d36d2cf2f18ad9a3db spice-0.12.6.tar.bz2"