Update package version to 2.41

This commit is contained in:
2025-05-12 19:48:40 +03:00
parent 7f9bea1f77
commit e1b96961c7
3 changed files with 22 additions and 6 deletions
+7 -3
View File
@@ -2,7 +2,7 @@
# 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
DOWNLOAD="https://www.kernel.org/pub/linux/utils/util-linux/v${BPM_PKG_VERSION%.*}/util-linux-${BPM_PKG_VERSION}.tar.xz"
DOWNLOAD="https://github.com/util-linux/util-linux/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz"
FILENAME="${DOWNLOAD##*/}"
# The prepare function is executed in the root of the temp directory
@@ -15,7 +15,8 @@ prepare() {
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
sed -i '/test_mkfds/s/^/#/' tests/helpers/Makemodule.am
./autogen.sh
./configure --bindir=/usr/bin \
--libdir=/usr/lib \
--runstatedir=/run \
@@ -40,7 +41,7 @@ build() {
# The check function is executed in the source directory
# This function is used to run tests to verify the package has been compiled correctly
check() {
make -k check
SHELL=/bin/sh make check
}
# The package function is executed in the source directory
@@ -48,4 +49,7 @@ check() {
package() {
make DESTDIR="$BPM_OUTPUT" install
install -d "$BPM_OUTPUT"/var/lib/hwclock/
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/util-linux/COPYING
}