description="GTK+ client library for SPICE"
url="https://www.spice-space.org/"

contributors="Rems"
packager="tnut <tnut@nutyx.org>"

makedepends=(gtk3 libcacard spice-protocol libjpeg-turbo2 pulseaudio
             opus usbredir gobject-introspection usbutils vala
             gstreamer-plugins-bad gstreamer-plugins-good
             gstreamer-plugins-libav cyrus-sasl lz4 json-glib)

 
name=spice-gtk
version=0.37

source=(https://www.spice-space.org/download/gtk/$name-$version.tar.bz2)

build() {

cd $name-$version

./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
            --enable-vala --with-coroutine=gthread
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
  make DESTDIR=$PKG install
}
