From 318150dd2bf47a73bf9e00b4a48da542be5d5b3b Mon Sep 17 00:00:00 2001 From: "Jan F. Chadima" Date: Sat, 28 Sep 2019 08:01:50 +0700 Subject: perl/perl-String-Scanf: Switch to noarch. Signed-off-by: Willy Sudiarto Raharjo --- .../perl-String-Scanf/perl-String-Scanf.SlackBuild | 26 +++------------------- 1 file changed, 3 insertions(+), 23 deletions(-) (limited to 'perl/perl-String-Scanf/perl-String-Scanf.SlackBuild') diff --git a/perl/perl-String-Scanf/perl-String-Scanf.SlackBuild b/perl/perl-String-Scanf/perl-String-Scanf.SlackBuild index df418bf848..7bd4f72db3 100644 --- a/perl/perl-String-Scanf/perl-String-Scanf.SlackBuild +++ b/perl/perl-String-Scanf/perl-String-Scanf.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for perl-String-Scanf -# Copyright 2017 Jan F. Chadima +# Copyright 2017, 2019 Jan F. Chadima # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,38 +24,18 @@ PRGNAM=perl-String-Scanf # replace "appname" with name of program VERSION=${VERSION:-2.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} SRCNAM="$(printf $PRGNAM | cut -d- -f2-)" -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi +ARCH=noarch CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e rm -rf $PKG -- cgit v1.2.3