diff options
Diffstat (limited to 'system/gtk-vnc/gtk-vnc.SlackBuild')
-rw-r--r-- | system/gtk-vnc/gtk-vnc.SlackBuild | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/system/gtk-vnc/gtk-vnc.SlackBuild b/system/gtk-vnc/gtk-vnc.SlackBuild index 607177ca0f9a7..45b70425abfa5 100644 --- a/system/gtk-vnc/gtk-vnc.SlackBuild +++ b/system/gtk-vnc/gtk-vnc.SlackBuild @@ -2,11 +2,11 @@ # Slackware build script for gtk-vnc -# Written by Ash Wiren ash@spooksoftware.com +# Written by Ash Wiren <ash@spooksoftware.com> PRGNAM=gtk-vnc -VERSION=${VERSION:-0.5.1} -BUILD=${BUILD:-2} +VERSION=${VERSION:-0.5.3} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} # Automatically determine the architecture we're building on: @@ -60,12 +60,9 @@ find $PRGNAM-$VERSION \ # Cut away jobs number from the MAKEFLAGS MAKEFLAGS=$(echo "$MAKEFLAGS" | sed "s/-j[0-999]//g") -# We will build both the gtk+3 and gtk+2 libs with -j1 to avoid surprises -# To avoid building the gtk3 version, pass GTK3=no to the script -if [ "${GTK3:-yes}" = "yes" ]; then -( -cp -a $PRGNAM-$VERSION{,-3} -cd $PRGNAM-$VERSION-3 +cp -a $PRGNAM-$VERSION $PRGNAM-$VERSION-3 + +cd $PRGNAM-$VERSION CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -79,17 +76,21 @@ CXXFLAGS="$SLKCFLAGS" \ --with-examples \ --with-libview \ --with-python \ - --with-gtk=3.0 \ + --with-gtk=2.0 \ --enable-vala \ --enable-introspection \ --build=$ARCH-slackware-linux make -j1 make install DESTDIR=$PKG -) -fi -cd $PRGNAM-$VERSION +cd .. + +# We will build both the gtk+3 and gtk+2 libs with -j1 to avoid surprises +# To avoid building the gtk3 version, pass GTK3=no to the script +if [ "${GTK3:-yes}" = "yes" ]; then + +cd $PRGNAM-$VERSION-3 CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -103,7 +104,7 @@ CXXFLAGS="$SLKCFLAGS" \ --with-examples \ --with-libview \ --with-python \ - --with-gtk=2.0 \ + --with-gtk=3.0 \ --enable-vala \ --enable-introspection \ --build=$ARCH-slackware-linux @@ -111,6 +112,8 @@ CXXFLAGS="$SLKCFLAGS" \ make -j1 make install DESTDIR=$PKG +fi + find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |