# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=spice-gtk pkgver=0.29 pkgrel=0 pkgdesc="A GTK+ widget for SPICE clients" url="http://spice-space.org/page/Spice-Gtk" arch="all" license="LGPLv2+" depends="" depends_dev="gtk+3.0-dev celt051-dev polkit-dev libxrandr-dev openssl-dev cyrus-sasl-dev gst-plugins-base1-dev libjpeg-turbo-dev zlib-dev acl-dev lz4-dev" makedepends="$depends_dev bash usbutils python-dev eudev-dev phodav-dev usbredir-dev libusb-dev libsoup-dev spice-protocol polkit-dev py-parsing gobject-introspection-dev " install="" options="suid" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-tools spice-glib:glib" source="http://www.spice-space.org/download/gtk/spice-gtk-$pkgver.tar.bz2" _builddir="$srcdir"/spice-gtk-$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 \ --with-gtk=3.0 \ --with-audio=gstreamer \ --enable-smartcard=no \ --enable-usbredir=yes \ || return 1 make || return 1 } package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la \ "$pkgdir"//usr/lib/py*/site-packages/*.la } tools() { pkgdesc="" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } glib() { pkgdesc="" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/*-glib-*.so* \ "$pkgdir"/usr/lib/*controller.so.* \ "$subpkgdir"/usr/lib/ || return 1 cd "$pkgdir" for i in $(find -name GLib*.typelib); do mkdir -p "$subpkgdir"/${i%/*} mv $i "$subpkgdir"/${i%/*} done } md5sums="f84b8fd6a5e926dce07ec5ebb5f0caf3 spice-gtk-0.29.tar.bz2" sha256sums="44c7e22713246a2054c3c3b6e0280fd4c1fdbd2c8d33e5eb95bcda4748d5e973 spice-gtk-0.29.tar.bz2" sha512sums="87cdcc5daa0f14eda5225cbe5cf0f29c1fb059c9fbbd6dfd52da02655db13f67f508c448dd5754877e12c577b5efde230914928fd91fcccf33eff52fac2319b0 spice-gtk-0.29.tar.bz2"