Update package version to 1.4.21

This commit is contained in:
2026-06-09 21:38:26 +03:00
parent d363db245f
commit e5bce26211
4 changed files with 31 additions and 25 deletions
+6 -3
View File
@@ -1,8 +1,11 @@
#!/bin/bash #!/bin/bash
URL="https://www.gnu.org/software/m4/" URL="ftp://ftp.gnu.org/gnu/m4/"
# Get version number from tag name # Get version number from FTP server
VERSION=$(curl -s -L "$URL" | grep 'The latest stable version is ' | grep -o -E '([0-9]*\.[0-9]*)\.[0-9]*') VERSION=$(curl -s --list-only "$URL" | grep -E '^m4-[0-9]{1,}\.[0-9]{1,}(\.[0-9]{1,})?.tar.xz$' | cut -d '-' -f2 | sort -V | tail -n1)
# Remove '.tar.gz' suffix from VERSION variable
VERSION=${VERSION//.tar.xz/}
echo "$VERSION" echo "$VERSION"
+21
View File
@@ -0,0 +1,21 @@
name: m4
description: GNU macro processor
version: 1.4.21
revision: 1
url: https://www.gnu.org/software/m4/
license: GPL3
maintainers:
- [email protected]
architecture: any
type: source
depends:
- glibc
make_depends:
- gperf
- help2man
- python3
downloads:
- url: https://ftpmirror.gnu.org/gnu/m4/m4-${BPM_PKG_VERSION}.tar.xz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: f25c6ab51548a73a75558742fb031e0625d6485fe5f9155949d6486a2408ab66
-9
View File
@@ -1,9 +0,0 @@
name: m4
description: GNU macro processor
version: 1.4.20
url: https://www.gnu.org/software/m4/
license: GPL3
architecture: any
depends: ["bash","glibc"]
make_depends: ["bash","binutils","coreutils","gcc","glibc","grep","make","sed","texinfo"]
type: source
+4 -13
View File
@@ -1,17 +1,7 @@
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package # This is the recipe.sh script. It is executed by BPM in a temporary directory when compiling a source package
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
DOWNLOAD="https://ftpmirror.gnu.org/gnu/m4/m4-${BPM_PKG_VERSION}.tar.xz"
FILENAME="${DOWNLOAD##*/}"
# The prepare function is executed in the root of the temp directory
# This function is used for downloading files and putting them into the correct location
prepare() {
wget "$DOWNLOAD"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
}
# 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() {
@@ -29,6 +19,7 @@ check() {
# This function is used to move the compiled files into the output directory # This function is used to move the compiled files into the output directory
package() { package() {
make DESTDIR="$BPM_OUTPUT" install make DESTDIR="$BPM_OUTPUT" install
mkdir -p "$BPM_OUTPUT"/usr/share/licenses/M4
cp COPYING "$BPM_OUTPUT"/usr/share/licenses/M4/COPYING # Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/m4/COPYING
} }