From 9f0ff9c8f89c2e0f66911520476283cc14d5c8d7 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Fri, 20 Sep 2019 19:31:29 +0000 Subject: perl-html-parser: rebuilt for -current against newer Perl --- perl-html-parser/build/perl-html-parser.SlackBuild | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'perl-html-parser') diff --git a/perl-html-parser/build/perl-html-parser.SlackBuild b/perl-html-parser/build/perl-html-parser.SlackBuild index 68bf330b..d966ea5d 100755 --- a/perl-html-parser/build/perl-html-parser.SlackBuild +++ b/perl-html-parser/build/perl-html-parser.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh # $Id$ -# Copyright 2017 Eric Hameleers, Eindhoven, NL +# Copyright 2017, 2019 Eric Hameleers, Eindhoven, NL # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -32,6 +32,8 @@ # Changelog: # 3.72-1: 25/oct/2017 by Eric Hameleers # * Initial build. +# 3.72-2: 20/sep/2019 by Eric Hameleers +# * Rebuilt against newer Perl in -current. # # Run 'sh perl-archive-zip.SlackBuild' to build a Slackware package. # The package (.tgz) and .txt file as well as build logs are created in /tmp . @@ -44,8 +46,8 @@ PRGNAM=perl-html-parser SRCNAM=HTML-Parser VERSION=${VERSION:-3.72} -BUILD=${BUILD:-1} -NUMJOBS=${NUMJOBS:-" -j4 "} +BUILD=${BUILD:-2} +NUMJOBS=${NUMJOBS:-" -j$(nproc) "} TAG=${TAG:-alien} DOCS="TODO Changes README" @@ -67,12 +69,13 @@ SRCURL="http://www.cpan.org/authors/id/G/GA/GAAS/${SRCNAM}-${VERSION}.tar.gz" # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) export ARCH=i486 ;; - arm*) export ARCH=arm ;; + case "$(uname -m)" in + i?86) ARCH=i586 ;; + arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;; # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$( uname -m ) ;; + *) ARCH=$(uname -m) ;; esac + export ARCH fi case "$ARCH" in -- cgit v1.2.3