diff options
author | Grigorios Bouzakis <grbzks@gmail.com> | 2010-05-13 00:28:16 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-13 00:28:16 +0200 |
commit | 3491199658d7b5515a753b4c193513a2de0a7248 (patch) | |
tree | f581d9faf783486d7271b1b722b8e672c6b7668f /graphics/scrot/scrot.SlackBuild | |
parent | 7c33855fa970dee126063416d6c94427401e41c1 (diff) |
graphics/scrot: Updated for version 0.8
Diffstat (limited to 'graphics/scrot/scrot.SlackBuild')
-rw-r--r-- | graphics/scrot/scrot.SlackBuild | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/graphics/scrot/scrot.SlackBuild b/graphics/scrot/scrot.SlackBuild index 60df2bf9a9014..fe33b811ce23e 100644 --- a/graphics/scrot/scrot.SlackBuild +++ b/graphics/scrot/scrot.SlackBuild @@ -9,7 +9,7 @@ set -e PRGNAM=scrot VERSION=0.8 ARCH=${ARCH:-i486} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} CWD=$(pwd) TMP=${TMP:-/tmp/SBo} @@ -18,8 +18,13 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi rm -rf $PKG @@ -35,6 +40,8 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --build=$ARCH-slackware-linux make make install DESTDIR=$PKG @@ -58,4 +65,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |