Update package version to 0.1.0
This commit is contained in:
@@ -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=(
|
||||
|
||||
Reference in New Issue
Block a user