diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2013-09-29 14:13:35 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-11-06 00:55:56 -0600 |
commit | 744b3e92fd2f0dbf9babdcd14c7f83d4af757e30 (patch) | |
tree | 89966bab69acc24190fb97484a77e58f4831f023 /network/spice-gtk/spice-gtk.SlackBuild | |
parent | f634723bec5c951264fa2483e5d2c725a3d8bea4 (diff) | |
download | slackbuilds-744b3e92fd2f0dbf9babdcd14c7f83d4af757e30.tar.gz |
network/spice-gtk: Updated for version 0.21, cleanups.
Build the GTK+3 version by default, removed bashisms,
removed the libcacard optional dependency
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/spice-gtk/spice-gtk.SlackBuild')
-rw-r--r-- | network/spice-gtk/spice-gtk.SlackBuild | 43 |
1 files changed, 30 insertions, 13 deletions
diff --git a/network/spice-gtk/spice-gtk.SlackBuild b/network/spice-gtk/spice-gtk.SlackBuild index 019d0f153b..b2537ea6d3 100644 --- a/network/spice-gtk/spice-gtk.SlackBuild +++ b/network/spice-gtk/spice-gtk.SlackBuild @@ -1,11 +1,29 @@ #!/bin/sh # Slackware build script for spice-gtk -# Written by Matteo Bernardini <ponce@slackbuilds.org> +# Copyright 2013 Matteo Bernardini <ponce@slackbuilds.org> Pisa, Italy +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=spice-gtk -VERSION=${VERSION:-0.14} -BUILD=${BUILD:-2} +VERSION=${VERSION:-0.21} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -35,12 +53,9 @@ else LIBDIRSUFFIX="" fi -# check if libcacard is there -if pkg-config --exists libcacard ; then - with_cacard="--enable-smartcard" -else - with_cacard="--disable-smartcard" -fi +# enable support for usbredir if available +if pkg-config --exists libusbredirhost; then usbredir="en"; else usbredir="dis"; fi +if [ "$GTK" = "2" ]; then gtkver="2"; else gtkver="3"; fi DOCS="AUTHORS COPYING NEWS README THANKS TODO" @@ -60,8 +75,9 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -rm gtk/controller/controller.{c,vala.stamp} gtk/controller/menu.c # force vala regen +rm gtk/controller/controller.c gtk/controller/controller.vala.stamp gtk/controller/menu.c export VALAC=$(which valac) +export VAPIGEN=$(which vapigen) CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -74,10 +90,11 @@ CXXFLAGS="$SLKCFLAGS" \ --localstatedir=/var \ --disable-static \ --enable-shared \ - --with-gtk=2.0 \ + --with-gtk=$gtkver.0 \ --with-audio=gstreamer \ - --build=$ARCH-slackware-linux \ - $with_cacard + --disable-maintainer-mode \ + --${usbredir}able-usbredir \ + --build=$ARCH-slackware-linux make make install DESTDIR=$PKG |