diff options
Diffstat (limited to 'perl/perl-JSON-XS/perl-JSON-XS.SlackBuild')
-rw-r--r-- | perl/perl-JSON-XS/perl-JSON-XS.SlackBuild | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/perl/perl-JSON-XS/perl-JSON-XS.SlackBuild b/perl/perl-JSON-XS/perl-JSON-XS.SlackBuild index 1222482b15523..0c6730352e717 100644 --- a/perl/perl-JSON-XS/perl-JSON-XS.SlackBuild +++ b/perl/perl-JSON-XS/perl-JSON-XS.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for perl-JSON-XS # Copyright 2013 Donald Cooley La Porte, IN USA +# Copyright 2017 Donald Cooley South Haven, IN USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +24,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=perl-JSON-XS -VERSION=${VERSION:-2.34} +VERSION=${VERSION:-3.03} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -31,7 +32,7 @@ SRCNAM="$(printf $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 @@ -42,8 +43,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" @@ -56,7 +57,7 @@ else LIBDIRSUFFIX="" fi -set -e +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -64,6 +65,7 @@ cd $TMP rm -rf $SRCNAM-$VERSION tar xvf $CWD/$SRCNAM-$VERSION.tar.gz cd $SRCNAM-$VERSION + chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -71,6 +73,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 {} \; +export PERL_MM_USE_DEFAULT=1 perl Makefile.PL \ PREFIX=/usr \ INSTALLDIRS=vendor \ @@ -92,7 +95,7 @@ find $PKG -depth -type d -empty -delete || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - COPYING README \ + COPYING README Changes \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |