perl/perlbrew: Updated for version 0.98.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2024-05-09 23:12:53 +07:00
parent b5cbfd9ce7
commit 1dcf6f7573
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 7 additions and 9 deletions

View file

@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=perlbrew
VERSION=${VERSION:-0.85}
VERSION=${VERSION:-0.98}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -40,9 +40,6 @@ if [ -z "$ARCH" ]; then
esac
fi
# 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
@ -81,12 +78,13 @@ 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 {} \;
unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 MODULEBUILDRC=/dev/null
perl Build.PL \
--installdirs vendor \
--config installvendorman1dir=/usr/man/man1 \
--config installvendorman3dir=/usr/man/man3
./Build
./Build test
./Build install \
--destdir $PKG
@ -97,7 +95,7 @@ find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f
find $PKG -depth -type d -empty -delete || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a Changes LICENSE README README.md doc/* $PKG/usr/doc/$PRGNAM-$VERSION
cp -a Changes LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -1,8 +1,8 @@
PRGNAM="perlbrew"
VERSION="0.85"
VERSION="0.98"
HOMEPAGE="https://perlbrew.pl/"
DOWNLOAD="https://cpan.metacpan.org/authors/id/G/GU/GUGOD/App-perlbrew-0.85.tar.gz"
MD5SUM="0a86d1393206c4a40efb74776f8794d1"
DOWNLOAD="https://cpan.metacpan.org/authors/id/G/GU/GUGOD/App-perlbrew-0.98.tar.gz"
MD5SUM="30ac30758526e57d8b9b8c34ae6ae526"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="perl-CPAN-Perl-Releases perl-Devel-PatchPerl perl-File-Which perl-Module-Build-Tiny perl-IO-All perl-Path-Class perl-Test-Exception perl-Test-Output perl-Test-Spec perl-Test-TempDir-Tiny perl-local-lib"