diff options
author | 2023-05-16 15:34:19 +0100 | |
---|---|---|
committer | 2023-05-17 00:58:11 +0100 | |
commit | b52f1b8f93b90b5e41e35652aba96598439458b1 (patch) | |
tree | 0e84ec29c6186ca94dc01a9ab6ea30e6f2b1e393 | |
parent | 7678e3c6ddbe6911d6b29d1b09471e2b5ee59c55 (diff) | |
download | slackbuilds-b52f1b8f93b90b5e41e35652aba96598439458b1.tar.gz slackbuilds-b52f1b8f93b90b5e41e35652aba96598439458b1.tar.xz |
academic/spidey: Fix and mv ARCH sect.
Signed-off-by: bedlam <dave@slackbuilds.org>
Diffstat (limited to '')
-rw-r--r-- | academic/spidey/spidey.SlackBuild | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/academic/spidey/spidey.SlackBuild b/academic/spidey/spidey.SlackBuild index 8010b54af8..09928e95bb 100644 --- a/academic/spidey/spidey.SlackBuild +++ b/academic/spidey/spidey.SlackBuild @@ -30,12 +30,16 @@ PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i386 ;; - arm*) ARCH=arm ;; + i?86) ARCH=i586 ;; *) ARCH=$( uname -m ) ;; esac fi +if ! [[ $ARCH =~ i?86 ]] && ! [ "$ARCH" = "x86_64" ]; then + printf "\n\n$ARCH is not supported... \n" + exit 1 +fi + # If the variable PRINT_PACKAGE_NAME is set, then this script will report what # the name of the created package would be, and then exit. This information # could be useful to other scripts. @@ -48,12 +52,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} - -if [ "$ARCH" != "i386" ] && [ "$ARCH" != "x86_64" ]; then - printf "\n\n$ARCH is not supported... \n" - exit 1 -fi - # Determine the source arch. Many thanks to the Ugene project for the # 64bit executable! if [ "$ARCH" = "x86_64" ]; then @@ -73,7 +71,7 @@ cd $PRGNAM-$VERSION gunzip -c $CWD/$PRGNAM.linux${SRCARCH}.gz > spidey -install -D -m755 spidey $PKG/usr/bin/spidey +install -D -m 755 spidey $PKG/usr/bin/spidey mkdir -p $PKG/usr/man/man1 cp $CWD/$PRGNAM.1 $PKG/usr/man/man1/$PRGNAM.1 |