diff options
Diffstat (limited to 'desktop/xfce4-screenshooter-plugin/xfce4-screenshooter-plugin.SlackBuild')
-rw-r--r-- | desktop/xfce4-screenshooter-plugin/xfce4-screenshooter-plugin.SlackBuild | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/desktop/xfce4-screenshooter-plugin/xfce4-screenshooter-plugin.SlackBuild b/desktop/xfce4-screenshooter-plugin/xfce4-screenshooter-plugin.SlackBuild index 45cbbe58c6..0e2b5c8640 100644 --- a/desktop/xfce4-screenshooter-plugin/xfce4-screenshooter-plugin.SlackBuild +++ b/desktop/xfce4-screenshooter-plugin/xfce4-screenshooter-plugin.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for xfce4-screenshooter-plugin -# Copyright 2006-2007 Robby Workman (http://rlworkman.net) +# Copyright 2006-2008 Robby Workman Northport, Alabama, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=xfce4-screenshooter-plugin -VERSION=1.0.0 +VERSION=1.4.0 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -37,6 +37,8 @@ if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" fi set -e @@ -45,7 +47,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find . \ @@ -58,17 +60,19 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --mandir=/usr/man \ --enable-shared=yes \ --enable-static=no \ - --enable-debug=no + --enable-debug=no \ + --build=$ARCH-slackware-linux make make install DESTDIR=$PKG -( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null -) +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +gzip -9 $PKG/usr/man/man?/*.? mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README \ |