Update package version to 26.8.15

This commit is contained in:
2026-09-04 15:58:24 +03:00
parent de44eb6c5f
commit 89b3ffba5c
2 changed files with 32 additions and 16 deletions
+16 -4
View File
@@ -6,20 +6,29 @@
# This function is used for downloading files and putting them into the correct location
prepare() {
cd "$BPM_SOURCE"
# https://github.com/rust-lang/cargo/issues/14866
find -name Cargo.toml -type f -exec sed -i '/"vendored-lua"/d' {} +
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
YAZI_GEN_COMPLETIONS=true cargo build --release --frozen --no-default-features
YAZI_GEN_COMPLETIONS=true cargo build --release -p "yazi-cli"
export VERGEN_GIT_SHA="${BPM_PKG_VERSION}-${BPM_PKG_REVISION}"
export YAZI_GEN_COMPLETIONS=true
export RUSTONIG_DYNAMIC_LIBONIG=1
cargo build --release --frozen --no-default-features
}
# 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() {
cargo test --frozen
export VERGEN_GIT_SHA="${BPM_PKG_VERSION}-${BPM_PKG_REVISION}"
export YAZI_GEN_COMPLETIONS=true
export RUSTONIG_DYNAMIC_LIBONIG=1
cargo test --frozen --workspace --no-default-features
}
# The package function is executed in the source directory
@@ -38,7 +47,10 @@ package() {
install -Dm644 yazi-boot/completions/yazi.bash "$BPM_OUTPUT"/usr/share/bash-completion/completions/yazi
install -Dm644 yazi-boot/completions/yazi.fish "$BPM_OUTPUT"/usr/share/fish/vedor_completions.d/yazi.fish
install -Dm644 yazi-boot/completions/_yazi "$BPM_OUTPUT"/usr/share/zsh/site-functions/_yazi
install -Dm644 yazi-cli/completions/ya.bash "$BPM_OUTPUT"/usr/share/bash-completion/completions/ya
install -Dm644 yazi-cli/completions/ya.fish "$BPM_OUTPUT"/usr/share/fish/vedor_completions.d/ya.fish
install -Dm644 yazi-cli/completions/_ya "$BPM_OUTPUT"/usr/share/zsh/site-functions/_ya
# Install package license
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/yazi/LICENSE
}