Update package version to 1.7.2
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Github repository
|
||||||
|
REPO="tealdeer-rs/tealdeer"
|
||||||
|
|
||||||
|
# Get tag name using Github Rest API
|
||||||
|
TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name')
|
||||||
|
|
||||||
|
# Trim 'v' character in TAG_NAME variable
|
||||||
|
VERSION=$(echo "$TAG_NAME" | tr -d 'v')
|
||||||
|
|
||||||
|
echo "$VERSION"
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
name: tealdeer
|
name: tealdeer
|
||||||
description: A very fast implementation of tldr in Rust
|
description: A very fast implementation of tldr in Rust
|
||||||
version: 1.7.1
|
version: 1.7.2
|
||||||
revision: 2
|
|
||||||
url: https://github.com/tealdeer-rs/tealdeer
|
url: https://github.com/tealdeer-rs/tealdeer
|
||||||
license: Apache-2.0,MIT
|
license: Apache-2.0,MIT
|
||||||
architecture: any
|
architecture: any
|
||||||
|
|||||||
@@ -10,12 +10,14 @@ FILENAME="${DOWNLOAD##*/}"
|
|||||||
prepare() {
|
prepare() {
|
||||||
wget "$DOWNLOAD"
|
wget "$DOWNLOAD"
|
||||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
||||||
|
|
||||||
|
cd "$BPM_SOURCE"
|
||||||
|
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
||||||
}
|
}
|
||||||
|
|
||||||
# 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() {
|
||||||
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
|
||||||
cargo build --release --frozen
|
cargo build --release --frozen
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -30,9 +32,11 @@ check() {
|
|||||||
package() {
|
package() {
|
||||||
install -Dm755 target/release/tldr "$BPM_OUTPUT"/usr/bin/tldr
|
install -Dm755 target/release/tldr "$BPM_OUTPUT"/usr/bin/tldr
|
||||||
|
|
||||||
|
# Install shell completion
|
||||||
install -Dm644 completion/bash_tealdeer "$BPM_OUTPUT"/usr/share/bash-completion/completions/tldr
|
install -Dm644 completion/bash_tealdeer "$BPM_OUTPUT"/usr/share/bash-completion/completions/tldr
|
||||||
install -Dm644 completion/zsh_tealdeer "$BPM_OUTPUT"/usr/share/zsh/site-functions/_tldr
|
install -Dm644 completion/zsh_tealdeer "$BPM_OUTPUT"/usr/share/zsh/site-functions/_tldr
|
||||||
install -Dm644 completion/fish_tealdeer "$BPM_OUTPUT"/usr/share/fish/vendor_completions.d/tldr.fish
|
install -Dm644 completion/fish_tealdeer "$BPM_OUTPUT"/usr/share/fish/vendor_completions.d/tldr.fish
|
||||||
|
|
||||||
|
# Install package license
|
||||||
install -Dm644 LICENSE* -t "$BPM_OUTPUT"/usr/share/licenses/tealdeer/*
|
install -Dm644 LICENSE* -t "$BPM_OUTPUT"/usr/share/licenses/tealdeer/*
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user