summaryrefslogtreecommitdiff
path: root/development/spin/spin.SlackBuild
diff options
context:
space:
mode:
authorSamuel Judson <samuel.e.judson@gmail.com>2020-05-09 08:25:51 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-05-10 08:36:55 +0700
commitbff521b959954e122de9327aabe585447fda0952 (patch)
treecde5e7c147b27faa3d2e4cc4ec808d17b94903bf /development/spin/spin.SlackBuild
parent4cf823acaba629edb4b6e214e2b1e9069bf3f269 (diff)
downloadslackbuilds-bff521b959954e122de9327aabe585447fda0952.tar.gz
development/spin: Updated for version 6.5.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/spin/spin.SlackBuild')
-rw-r--r--development/spin/spin.SlackBuild26
1 files changed, 16 insertions, 10 deletions
diff --git a/development/spin/spin.SlackBuild b/development/spin/spin.SlackBuild
index 01654858f0..01f4cab9a1 100644
--- a/development/spin/spin.SlackBuild
+++ b/development/spin/spin.SlackBuild
@@ -2,8 +2,10 @@
# Slackware build script for spin
-# Originally by Jockey S. Kyd (jockey dot kyd at gmail dot com)
+# Samuel Judson | sam@sjudson.com
+# Previous maintained by:
+# Jockey S. Kyd (jockey dot kyd at gmail dot com)
# Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org
# This program is free software; you can redistribute it and/or modify
@@ -25,13 +27,13 @@
# not, see <http://www.gnu.org/licenses/>.
PRGNAM=spin
-VERSION=${VERSION:-6.4.3}
+VERSION=${VERSION:-6.5.2}
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
@@ -41,9 +43,10 @@ CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+CPRGNAM=Spin
-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,8 +64,8 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM`echo $VERSION | sed 's/\.//g'`.tar.gz
-mv Spin $PRGNAM-$VERSION
+tar xvf $CWD/$CPRGNAM-version-$VERSION.tar.gz
+mv $CPRGNAM-version-$VERSION $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -71,13 +74,16 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-cd Src$VERSION
+cd Src
sed -i "s/^CFLAGS=\(.*\)$/CFLAGS=$SLKCFLAGS \1/" makefile
make -j1
cd ..
-install -Dm 755 Src$VERSION/spin $PKG/usr/bin/spin
-install -Dm 755 iSpin/ispin.tcl $PKG/usr/bin/ispin
+install -Dm 755 Src/spin $PKG/usr/bin/spin
+if [ ${GUI:-"no"} = "yes" ]
+then
+ install -Dm 755 optional_gui/ispin.tcl $PKG/usr/bin/ispin
+fi
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true