summaryrefslogtreecommitdiff
path: root/desktop/sawfish-session-dialog/sawfish-session-dialog.SlackBuild
diff options
context:
space:
mode:
authorEdinaldo P. Silva <edps.mundognu@gmail.com>2017-09-08 23:17:11 +0100
committerDavid Spencer <idlemoor@slackbuilds.org>2017-09-08 23:17:11 +0100
commit8c4baf35c6da5ce67be3866d5044a51a9474877b (patch)
tree0b5e5b4dbd387b396d6c71e29b871d1bf948d49e /desktop/sawfish-session-dialog/sawfish-session-dialog.SlackBuild
parentbc8f3beb664e66205d0a0c6127b63f5ab143a45b (diff)
downloadslackbuilds-8c4baf35c6da5ce67be3866d5044a51a9474877b.tar.gz
desktop/sawfish-session-dialog: Updated for version 20150813.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'desktop/sawfish-session-dialog/sawfish-session-dialog.SlackBuild')
-rw-r--r--desktop/sawfish-session-dialog/sawfish-session-dialog.SlackBuild27
1 files changed, 14 insertions, 13 deletions
diff --git a/desktop/sawfish-session-dialog/sawfish-session-dialog.SlackBuild b/desktop/sawfish-session-dialog/sawfish-session-dialog.SlackBuild
index c3a34c42e6..5b004791b8 100644
--- a/desktop/sawfish-session-dialog/sawfish-session-dialog.SlackBuild
+++ b/desktop/sawfish-session-dialog/sawfish-session-dialog.SlackBuild
@@ -1,7 +1,8 @@
#!/bin/sh
+#
# Slackware build script for sawfish-session-dialog.
-
-# Copyright 2015 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+#
+# Copyright 2015-2017 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,14 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=sawfish-session-dialog
-SRCNAM=ssd
-VERSION=${VERSION:-0.41}
+VERSION=${VERSION:-20150813}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -54,15 +54,17 @@ else
LIBDIRSUFFIX=""
fi
+SRCNAM=${SRCNAM:-ssd}
+SRCVER=${SRCVER:-0162acb5f9181b7dd4810a40720f449b1ef9f61f}
+
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/${SRCNAM}_${VERSION}.tar.xz
-mv ${SRCNAM}_${VERSION} $PRGNAM-$VERSION
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM-$SRCVER
+tar xvf $CWD/$SRCNAM-$SRCVER.tar.gz
+cd $SRCNAM-$SRCVER
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -90,12 +92,11 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
DOCS="AUTHORS COPYING COPYING.ICONS NEWS README"
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cp $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}