mirror of
https://github.com/SinTan1729/lure-repo.git
synced 2024-12-26 06:48:35 -06:00
Workaround for auto versioning
This commit is contained in:
parent
9f3ccb3901
commit
54464c652d
1 changed files with 5 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
name='bat'
|
name='bat'
|
||||||
version=v0.22.1
|
version=auto
|
||||||
release=1
|
release=1
|
||||||
desc='A cat(1) clone with syntax highlighting and Git integration'
|
desc='A cat(1) clone with syntax highlighting and Git integration'
|
||||||
homepage='https://github.com/sharkdp/bat'
|
homepage='https://github.com/sharkdp/bat'
|
||||||
|
@ -18,10 +18,11 @@ version() {
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
echo Installing ${name} ${version}
|
vers="$(curl --silent "https://api.github.com/repos/${git_repo}/releases/latest" | grep -Eo '"tag_name": "v(.*)"' | sed -E 's/.*"([^"]+)".*/\1/')"
|
||||||
curl -L "https://github.com/${git_repo}/releases/download/${version}/${name}-${version}-x86_64-unknown-linux-musl.tar.gz" -o ${name}.tar.gz
|
echo Installing ${name} ${vers}
|
||||||
|
curl -L "https://github.com/${git_repo}/releases/download/${vers}/${name}-${vers}-x86_64-unknown-linux-musl.tar.gz" -o ${name}.tar.gz
|
||||||
tar xzvf "${name}.tar.gz" -C .
|
tar xzvf "${name}.tar.gz" -C .
|
||||||
cd "./${name}-${version}-x86_64-unknown-linux-musl"
|
cd "./${name}-${vers}-x86_64-unknown-linux-musl"
|
||||||
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}.1" "${pkgdir}/usr/local/share/man/man1/${name}.1"
|
||||||
install -Dm644 "./autocomplete/${name}.fish" "${pkgdir}/usr/share/fish/completions/${name}.fish"
|
install -Dm644 "./autocomplete/${name}.fish" "${pkgdir}/usr/share/fish/completions/${name}.fish"
|
||||||
|
|
Loading…
Reference in a new issue