diff options
author | D Woodfall <dave@slackbuilds.org> | 2023-05-16 19:36:05 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-05-20 11:17:56 +0700 |
commit | c172e6c4d714182cf560ca1f8a54094fae55ddae (patch) | |
tree | b47b07f61dc83ca18e00af7370593ab35250ffb9 /academic | |
parent | 258eaf03eac01d2b17b2a307c7bc98b6d1b9cd24 (diff) |
academic/finchtv: Fix ARCH section.
Signed-off-by: bedlam <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic')
-rw-r--r-- | academic/finchtv/finchtv.SlackBuild | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/academic/finchtv/finchtv.SlackBuild b/academic/finchtv/finchtv.SlackBuild index 8493e202c8021..0a8f1321a9a66 100644 --- a/academic/finchtv/finchtv.SlackBuild +++ b/academic/finchtv/finchtv.SlackBuild @@ -31,7 +31,19 @@ TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} SRCVER=1_3_1 -ARCH=i386 # This will work on a stock Slackware64 as well. + +# 2023-05-16 DW: check for ARCH and kick wronguns +if [ -z "$ARCH" ]; then + case "$ARCH" in + i?86) ARCH=i586 ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if ! [ "$ARCH" = "x86_64" ] && ! [[ $ARCH =~ i?86 ]]; then + printf "\n$ARCH is not supported... \n" >/dev/stderr + 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 @@ -60,7 +72,7 @@ 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 {} \; -install -D -m755 $PRGNAM $PKG/usr/bin/$PRGNAM +install -D -m 755 $PRGNAM $PKG/usr/bin/$PRGNAM 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 |