Update package version to 5.42.0
This commit is contained in:
@@ -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,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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
perldir=/usr/lib/perl/${BPM_PKG_VERSION%.*}
|
||||||
sh Configure -des \
|
sh Configure -des \
|
||||||
-Dprefix=/usr \
|
-Dprefix=/usr \
|
||||||
-Dvendorprefix=/usr \
|
-Dvendorprefix=/usr \
|
||||||
-Dprivlib=/usr/lib/perl5/5.38/core_perl \
|
-Dprivlib="$perldir"/core_perl \
|
||||||
-Darchlib=/usr/lib/perl5/5.38/core_perl \
|
-Darchlib="$perldir"/core_perl \
|
||||||
-Dsitelib=/usr/lib/perl5/5.38/site_perl \
|
-Dsitelib="$perldir"/site_perl \
|
||||||
-Dsitearch=/usr/lib/perl5/5.38/site_perl \
|
-Dsitearch="$perldir"/site_perl \
|
||||||
-Dvendorlib=/usr/lib/perl5/5.38/vendor_perl \
|
-Dvendorlib="$perldir"/vendor_perl \
|
||||||
-Dvendorarch=/usr/lib/perl5/5.38/vendor_perl \
|
-Dvendorarch="$perldir"/vendor_perl \
|
||||||
-Dman1dir=/usr/share/man/man1 \
|
-Dman1dir=/usr/share/man/man1 \
|
||||||
-Dman3dir=/usr/share/man/man3 \
|
-Dman3dir=/usr/share/man/man3 \
|
||||||
-Dpager="/usr/bin/less -isR" \
|
-Dpager="/usr/bin/less -isR" \
|
||||||
-Duseshrplib \
|
-Duseshrplib \
|
||||||
-Dusethreads
|
-Dusethreads \
|
||||||
|
-Doptimize="${CFLAGS}"
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user