mirror of
https://github.com/SinTan1729/lure-repo.git
synced 2024-12-26 06:48:35 -06:00
Initial commit
This commit is contained in:
commit
d109640e96
1 changed files with 28 additions and 0 deletions
28
bat/lure.sh
Normal file
28
bat/lure.sh
Normal file
|
@ -0,0 +1,28 @@
|
|||
name='bat'
|
||||
version=auto
|
||||
release=1
|
||||
desc='A cat(1) clone with syntax highlighting and Git integration'
|
||||
homepage='https://github.com/sharkdp/bat'
|
||||
architectures=('all')
|
||||
license=('APACHE-2.0' 'MIT')
|
||||
provides=('bat')
|
||||
conflicts=('bat')
|
||||
|
||||
sources=()
|
||||
checksums=()
|
||||
|
||||
version() {
|
||||
printf "$(curl --silent "https://api.github.com/repos/sharkdp/bat/releases/latest" | grep -Eo '"tag_name": "v(.*)"' | sed -E 's/.*"([^"]+)".*/\1/')"
|
||||
}
|
||||
|
||||
package() {
|
||||
curl -sL "https://github.com/sharkdp/bat/releases/download/$version/bat-$version-x86_64-unknown-linux-musl.tar.gz" -o bat.tar.gz
|
||||
tar xzvf "bat.tar.gz" -C .
|
||||
cd "./bat-$version-x86_64-unknown-linux-musl"
|
||||
install -Dm755 "./bat" "${pkgdir}/usr/local/bin/bat"
|
||||
install -Dm644 "./bat.1" "${pkgdir}/usr/local/share/man/man1/bat.1"
|
||||
install -Dm644 "./autocomplete/bat.fish" "/usr/share/fish/completions/bat.fish"
|
||||
install -Dm644 "./autocomplete/bat.zsh" "/usr/share/zsh/site-functions/_bat"
|
||||
install -Dm644 "./autocomplete/bat.bash" "/usr/share/bash-completion/completions/bat"
|
||||
}
|
||||
|
Loading…
Reference in a new issue