aboutsummaryrefslogtreecommitdiff
path: root/perl/perl-JSON-XS/perl-JSON-XS.SlackBuild
diff options
context:
space:
mode:
authorDonald Cooley <chytraeu@sdf.org>2017-01-21 12:07:41 +0000
committerDavid Spencer <idlemoor@slackbuilds.org>2017-01-21 12:07:41 +0000
commit40877f0f9ae679304aba76576a31bcdc14844d10 (patch)
tree5d83d23cac19e1063a880de17627b43cfdd5ac60 /perl/perl-JSON-XS/perl-JSON-XS.SlackBuild
parent49391f408c6fd1d8604264fe0203de9455fd1615 (diff)
perl/perl-JSON-XS: Updated for version 3.03.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'perl/perl-JSON-XS/perl-JSON-XS.SlackBuild')
-rw-r--r--perl/perl-JSON-XS/perl-JSON-XS.SlackBuild15
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