summaryrefslogtreecommitdiff
path: root/perl/perl-CSS-Squish
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-03-21 20:45:25 -0400
committerDavid Spencer <idlemoor@slackbuilds.org>2017-03-25 13:29:21 +0000
commit2cd51987ac5213c9b52bebf5372054537adac6a1 (patch)
tree0bb7490bcc61df564dfbcc634e3301eab12c9d80 /perl/perl-CSS-Squish
parent929f20b5d933d913cf238d86e032932fbbbc8622 (diff)
downloadslackbuilds-2cd51987ac5213c9b52bebf5372054537adac6a1.tar.gz
perl/perl-CSS-Squish: Allow VERSION override, i486=>i586.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'perl/perl-CSS-Squish')
-rw-r--r--perl/perl-CSS-Squish/perl-CSS-Squish.SlackBuild11
1 files changed, 5 insertions, 6 deletions
diff --git a/perl/perl-CSS-Squish/perl-CSS-Squish.SlackBuild b/perl/perl-CSS-Squish/perl-CSS-Squish.SlackBuild
index 9a5880f391..1b84f1ff23 100644
--- a/perl/perl-CSS-Squish/perl-CSS-Squish.SlackBuild
+++ b/perl/perl-CSS-Squish/perl-CSS-Squish.SlackBuild
@@ -25,10 +25,10 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Build script for perl-Class-ReturnValue
+# Build script for perl-CSS-Squish
PRGNAM=perl-CSS-Squish
-VERSION=0.10
+VERSION=${VERSION:-0.10}
BUILD=${BUILD:-0}
TAG=${TAG:-_SBo}
@@ -36,7 +36,7 @@ SRCNAM=$( echo $PRGNAM | cut -d- -f2- )
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -47,8 +47,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-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"
@@ -87,7 +87,6 @@ make install DESTDIR=$PKG
find $PKG/usr/man -type f -exec gzip -9 {} \;
-# Remove perllocal.pod and other special files that don't need to be installed
find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
# Remove empty directories