Update package version to 0.1.0

This commit is contained in:
2025-08-03 18:48:54 +03:00
parent 1abfc0ad12
commit e58b77e31a
4 changed files with 159 additions and 9 deletions
+16 -6
View File
@@ -5,28 +5,38 @@
DOWNLOAD="https://github.com/uutils/coreutils/archive/refs/tags/${BPM_PKG_VERSION}.tar.gz"
FILENAME="${DOWNLOAD##*/}"
SKIPPED_UTILS="hostname kill more uptime"
SKIPPED_UTILS="hostname kill more uptime runcon chcon"
# 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"
# Apply patches
cd "$BPM_SOURCE"
# Add stty to makefile
patch GNUmakefile < "$BPM_WORKDIR"/add_stty_to_makefile.patch
# Bump onig version from 6.4.0 to 6.5.1
patch -Np1 -i "$BPM_WORKDIR"/bump-onig-version.patch
}
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
# Apply patch to add stty to makefile
patch GNUmakefile < "$BPM_WORKDIR"/add_stty_to_makefile.patch
make PREFIX=/usr MANDIR=/share/man/man1 PROFILE=release SKIP_UTILS="$SKIPPED_UTILS"
export RUSTONIG_DYNAMIC_LIBONIG=1
make PROFILE=release MULTICALL=y SKIP_UTILS="$SKIPPED_UTILS"
}
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
make PREFIX=/usr MANDIR=/share/man/man1 MULTICALL=y SKIP_UTILS="$SKIPPED_UTILS" DESTDIR="$BPM_OUTPUT" install
make PREFIX=/usr \
MANDIR=/share/man/man1 \
MULTICALL=y \
SKIP_UTILS="$SKIPPED_UTILS" \
DESTDIR="$BPM_OUTPUT" \
install
# Add symlinks to missing binaries
local binaries=(