diff options
author | Eric Hameleers <alien@slackware.com> | 2019-09-20 19:31:29 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2019-09-20 19:31:29 +0000 |
commit | 9f0ff9c8f89c2e0f66911520476283cc14d5c8d7 (patch) | |
tree | b5007186f8a0a19e3a0298c17bc04bd886b0c350 /perl-html-parser | |
parent | 9935fb1769201ca06cd2e35d9d65384621fac94e (diff) | |
download | asb-9f0ff9c8f89c2e0f66911520476283cc14d5c8d7.tar.gz asb-9f0ff9c8f89c2e0f66911520476283cc14d5c8d7.tar.xz |
perl-html-parser: rebuilt for -current against newer Perl
Diffstat (limited to 'perl-html-parser')
-rwxr-xr-x | perl-html-parser/build/perl-html-parser.SlackBuild | 17 |
1 files changed, 10 insertions, 7 deletions
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 <alien@slackware.com> # * Initial build. +# 3.72-2: 20/sep/2019 by Eric Hameleers <alien@slackware.com> +# * 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 |