perl/perl-namespace-clean: Switch to noarch.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Jan F. Chadima 2019-09-28 09:04:19 +07:00 committed by Willy Sudiarto Raharjo
parent dd6427e449
commit faaf131f2b
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
1 changed files with 3 additions and 23 deletions

View File

@ -2,7 +2,7 @@
# Slackware build script for perl-namespace-clean # Slackware build script for perl-namespace-clean
# Copyright 2018 Jan F. Chadima <jfch@jagda.eu> # Copyright 2018-2019 Jan F. Chadima <jfch@jagda.eu>
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -24,38 +24,18 @@
PRGNAM=perl-namespace-clean PRGNAM=perl-namespace-clean
VERSION=${VERSION:-0.27} VERSION=${VERSION:-0.27}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
SRCNAM="$(printf $PRGNAM | cut -d- -f2-)" SRCNAM="$(printf $PRGNAM | cut -d- -f2-)"
if [ -z "$ARCH" ]; then ARCH=noarch
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd) CWD=$(pwd)
TMP=${TMP:-/tmp/SBo} TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp} 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 set -e
rm -rf $PKG rm -rf $PKG