diff options
Diffstat (limited to 'perl/perl-LWP-Protocol-https/perl-LWP-Protocol-https.SlackBuild')
-rw-r--r-- | perl/perl-LWP-Protocol-https/perl-LWP-Protocol-https.SlackBuild | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/perl/perl-LWP-Protocol-https/perl-LWP-Protocol-https.SlackBuild b/perl/perl-LWP-Protocol-https/perl-LWP-Protocol-https.SlackBuild index f515287f96..e16a3766c7 100644 --- a/perl/perl-LWP-Protocol-https/perl-LWP-Protocol-https.SlackBuild +++ b/perl/perl-LWP-Protocol-https/perl-LWP-Protocol-https.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for perl-LWP-Protocol-https -# Copyright 2013,2019 Chris Walker Kempner, TX +# Copyright 2013,2019,2021 Chris Walker Kempner, TX # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,22 +22,32 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=perl-LWP-Protocol-https -VERSION=${VERSION:-6.07} +VERSION=${VERSION:-6.10} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCNAM=LWP-Protocol-https if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -77,7 +87,7 @@ find $PKG -depth -type d -empty -delete || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - Changes README \ + Changes Install LICENSE \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -85,4 +95,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |