Update package version to 5.42.0

This commit is contained in:
2025-09-07 19:31:02 +03:00
parent 75719e0308
commit 6f24053007
3 changed files with 27 additions and 16 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
URL="https://www.cpan.org/src/README.html"
# Get version number from website
VERSION=$(curl -s -L "$URL" | grep -A2 'class="latest"' | tail -n1 | grep -o -E '[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}')
echo "$VERSION"
+1 -2
View File
@@ -1,7 +1,6 @@
name: perl name: perl
description: The Practical Extraction and Report Language description: The Practical Extraction and Report Language
version: 5.38.2 version: 5.42.0
revision: 3
url: https://www.perl.org/ url: https://www.perl.org/
license: GPL3-or-later license: GPL3-or-later
architecture: any architecture: any
+18 -14
View File
@@ -15,22 +15,26 @@ prepare() {
# The build function is executed in the source directory # The build function is executed in the source directory
# This function is used to compile the source code # This function is used to compile the source code
build() { build() {
# Use system libraries
export BUILD_ZLIB=False export BUILD_ZLIB=False
export BUILD_BZIP2=0 export BUILD_BZIP2=0
sh Configure -des \
-Dprefix=/usr \ perldir=/usr/lib/perl/${BPM_PKG_VERSION%.*}
-Dvendorprefix=/usr \ sh Configure -des \
-Dprivlib=/usr/lib/perl5/5.38/core_perl \ -Dprefix=/usr \
-Darchlib=/usr/lib/perl5/5.38/core_perl \ -Dvendorprefix=/usr \
-Dsitelib=/usr/lib/perl5/5.38/site_perl \ -Dprivlib="$perldir"/core_perl \
-Dsitearch=/usr/lib/perl5/5.38/site_perl \ -Darchlib="$perldir"/core_perl \
-Dvendorlib=/usr/lib/perl5/5.38/vendor_perl \ -Dsitelib="$perldir"/site_perl \
-Dvendorarch=/usr/lib/perl5/5.38/vendor_perl \ -Dsitearch="$perldir"/site_perl \
-Dman1dir=/usr/share/man/man1 \ -Dvendorlib="$perldir"/vendor_perl \
-Dman3dir=/usr/share/man/man3 \ -Dvendorarch="$perldir"/vendor_perl \
-Dpager="/usr/bin/less -isR" \ -Dman1dir=/usr/share/man/man1 \
-Duseshrplib \ -Dman3dir=/usr/share/man/man3 \
-Dusethreads -Dpager="/usr/bin/less -isR" \
-Duseshrplib \
-Dusethreads \
-Doptimize="${CFLAGS}"
make make
} }