diff options
author | Edinaldo P. Silva <edps.mundognu@gmail.com> | 2017-03-12 09:15:31 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-03-18 06:58:13 +0700 |
commit | b0ff186342bc5d23616a046a85459e645ec0e756 (patch) | |
tree | 4c71384c7f617b439d5a9fb29315c61c6450ea49 /perl/perl-extutils-depends/perl-extutils-depends.SlackBuild | |
parent | 287346028fe6fff374c4be88e1156ea0e079e7fe (diff) | |
download | slackbuilds-b0ff186342bc5d23616a046a85459e645ec0e756.tar.gz |
perl/perl-extutils-depends: Updated for version 0.405 + new maint.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'perl/perl-extutils-depends/perl-extutils-depends.SlackBuild')
-rw-r--r-- | perl/perl-extutils-depends/perl-extutils-depends.SlackBuild | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/perl/perl-extutils-depends/perl-extutils-depends.SlackBuild b/perl/perl-extutils-depends/perl-extutils-depends.SlackBuild index 69f21b6b4a..643c622cf7 100644 --- a/perl/perl-extutils-depends/perl-extutils-depends.SlackBuild +++ b/perl/perl-extutils-depends/perl-extutils-depends.SlackBuild @@ -1,12 +1,13 @@ #!/bin/sh - -# Slackware build script for perl-extutils-depends - +# +# Slackware build script for perl-extutils-depends. +# # (C) 2007 Michael Wagner <lapinours@web.de> # Copyright 2010, 2012 Binh Nguyen <binhvng@gmail.com> -# All rights reserved. +# Copyright 2014-2017 Glenn Becker <burningc@sdf.org> +# Copyright 2017 Edinaldo P. Silva, Rio de Janeiro, Brazil. # -# Update for version 0.404 by Glenn Becker <glenn.becker@gmail.com> +# All rights reserved. # # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: @@ -26,15 +27,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=perl-extutils-depends -VERSION=${VERSION:-0.404} +VERSION=${VERSION:-0.405} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -SRCNAM=ExtUtils-Depends - if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -45,6 +44,22 @@ 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 + +SRCNAM="ExtUtils-Depends" + set -e rm -rf $PKG |