mirror of
https://github.com/SinTan1729/lure-repo.git
synced 2024-12-26 22:58:37 -06:00
Added man and autocomplete for lf
This commit is contained in:
parent
5ac1f1fa95
commit
ccc6237827
1 changed files with 9 additions and 1 deletions
10
lf/lure.sh
10
lf/lure.sh
|
@ -20,8 +20,16 @@ version() {
|
||||||
package() {
|
package() {
|
||||||
vers="$(curl --silent "https://api.github.com/repos/${git_repo}/releases/latest" | grep -Eo '"tag_name": "(r.*)"' | sed -E 's/.*"([^"]+)".*/\1/')"
|
vers="$(curl --silent "https://api.github.com/repos/${git_repo}/releases/latest" | grep -Eo '"tag_name": "(r.*)"' | sed -E 's/.*"([^"]+)".*/\1/')"
|
||||||
echo Installing ${name} ${vers}
|
echo Installing ${name} ${vers}
|
||||||
curl -L "https://github.com/${git_repo}/releases/download/${vers}/${name}-linux-${architectures}.tar.gz" -o ${name}.tar.gz
|
curl -L "https://github.com/${git_repo}/releases/download/${vers}/${name}-linux-${ARCH}.tar.gz" -o ${name}.tar.gz
|
||||||
|
curl -L "https://raw.githubusercontent.com/${git_repo}/master/${name}.1" -o ${name}.1
|
||||||
|
curl -L "https://raw.githubusercontent.com/${git_repo}/master/etc/${name}.fish" -o ${name}.fish
|
||||||
|
curl -L "https://raw.githubusercontent.com/${git_repo}/master/etc/${name}.zsh" -o ${name}.zsh
|
||||||
|
curl -L "https://raw.githubusercontent.com/${git_repo}/master/etc/${name}.bash" -o ${name}.bash
|
||||||
tar xzf "${name}.tar.gz" -C .
|
tar xzf "${name}.tar.gz" -C .
|
||||||
install -Dm755 "./${name}" "${pkgdir}/usr/local/bin/${name}"
|
install -Dm755 "./${name}" "${pkgdir}/usr/local/bin/${name}"
|
||||||
|
install -Dm644 "./${name}.1" "${pkgdir}/usr/local/share/man/man1/${name}.1"
|
||||||
|
install -Dm644 "./${name}.fish" "${pkgdir}/usr/share/fish/completions/${name}.fish"
|
||||||
|
install -Dm644 "./${name}.zsh" "${pkgdir}/usr/share/zsh/site-functions/_${name}"
|
||||||
|
install -Dm644 "./${name}.bash" "${pkgdir}/usr/share/bash-completion/completions/${name}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue