Initial commit

This commit is contained in:
Sayantan Santra 2022-11-19 23:06:38 -06:00
commit d109640e96

28
bat/lure.sh Normal file
View 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"
}