aboutsummaryrefslogtreecommitdiff
path: root/desktop/spectrwm/spectrwm.SlackBuild
diff options
context:
space:
mode:
authorLEVAI Daniel <leva@ecentrum.hu>2016-08-14 23:09:59 +0100
committerDavid Spencer <idlemoor@slackbuilds.org>2016-08-14 23:25:23 +0100
commitd1701a692900b0384123dd0960d35e8a0454ec72 (patch)
tree4fcc5757a5d070f9a680360cd6ca302637d2a3d3 /desktop/spectrwm/spectrwm.SlackBuild
parent7605cfde74dda18b76492d43128cba67ad873ae0 (diff)
desktop/spectrwm: Updated for version 3.0.2.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'desktop/spectrwm/spectrwm.SlackBuild')
-rw-r--r--desktop/spectrwm/spectrwm.SlackBuild16
1 files changed, 8 insertions, 8 deletions
diff --git a/desktop/spectrwm/spectrwm.SlackBuild b/desktop/spectrwm/spectrwm.SlackBuild
index ca3cc4494c620..37243436e6d37 100644
--- a/desktop/spectrwm/spectrwm.SlackBuild
+++ b/desktop/spectrwm/spectrwm.SlackBuild
@@ -24,13 +24,14 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=spectrwm
-VERSION=${VERSION:-2.7.2}
+VERSION=${VERSION:-3.0.2}
+UPNAM=SPECTRWM_3_0_2 # changed to allow cd to proper folder
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,10 +41,9 @@ CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-UPNAM=$PRGNAM-SPECTRWM_2_7_2 # changed to allow cd to proper folder
-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"
@@ -61,9 +61,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$UPNAM.tar.gz
-cd $UPNAM
+rm -rf $PRGNAM-$UPNAM
+tar xvf $CWD/$PRGNAM-$UPNAM.tar.gz || tar xvf $CWD/$UPNAM.tar.gz
+cd $PRGNAM-$UPNAM
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \