mirror of
https://github.com/Ponce/slackbuilds
synced 2024-09-29 17:37:55 +02:00
perl/perl-JSON-XS: Updated for version 3.03.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
49391f408c
commit
40877f0f9a
4 changed files with 18 additions and 15 deletions
|
@ -1,3 +1,3 @@
|
|||
This module converts Perl data structures to JSON and vice versa.
|
||||
Its primary goal is to be correct and its secondary goal is to be
|
||||
fast. To reach the latter goal it was written in C.
|
||||
This module converts Perl data structures to JSON and vice versa. Its
|
||||
primary goal is to be correct and its secondary goal is to be fast. To
|
||||
reach the latter goal it was written in C.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="perl-JSON-XS"
|
||||
VERSION="2.34"
|
||||
VERSION="3.03"
|
||||
HOMEPAGE="https://metacpan.org/release/JSON-XS"
|
||||
DOWNLOAD="http://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/JSON-XS-2.34.tar.gz"
|
||||
MD5SUM="dda3c03335665cdeff91c37a269b833b"
|
||||
DOWNLOAD="http://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/JSON-XS-3.03.tar.gz"
|
||||
MD5SUM="75c5afccb8d5d33be23ec353e3410aca"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="perl-common-sense perl-JSON"
|
||||
REQUIRES="perl-Canary-Stability perl-Types-Serialiser"
|
||||
MAINTAINER="Donald Cooley"
|
||||
EMAIL="dfc@warpmail.net"
|
||||
EMAIL="chytraeu@sdf.org"
|
||||
|
|
|
@ -16,4 +16,4 @@ perl-JSON-XS:
|
|||
perl-JSON-XS:
|
||||
perl-JSON-XS:
|
||||
perl-JSON-XS:
|
||||
perl-JSON-XS:
|
||||
perl-JSON-XS: https://metacpan.org/release/JSON-XS
|
||||
|
|
Loading…
Reference in a new issue