mirror of
https://github.com/SinTan1729/lure-repo.git
synced 2024-12-26 06:48:35 -06:00
Add script for lf
This commit is contained in:
parent
3124e28b6b
commit
645ee55180
1 changed files with 27 additions and 0 deletions
27
lf/lure.sh
Normal file
27
lf/lure.sh
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
name='lf'
|
||||||
|
version=VERSION
|
||||||
|
release=1
|
||||||
|
desc='A terminal file manager written in Go'
|
||||||
|
homepage='https://github.com/gokcehan/lf'
|
||||||
|
architectures=('amd64')
|
||||||
|
maintainer='SinTan1729'
|
||||||
|
license=('MIT')
|
||||||
|
provides=('lf')
|
||||||
|
conflicts=('lf')
|
||||||
|
git_repo="gokcehan/lf"
|
||||||
|
|
||||||
|
sources=()
|
||||||
|
checksums=()
|
||||||
|
|
||||||
|
version() {
|
||||||
|
printf "$(curl --silent "https://api.github.com/repos/$repo/releases/latest" | grep -Eo '"tag_name": "(r.*)"' | sed -E 's/.*"([^"]+)".*/\1/')"
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
vers="$(curl --silent "https://api.github.com/repos/$repo/releases/latest" | grep -Eo '"tag_name": "(r.*)"' | sed -E 's/.*"([^"]+)".*/\1/')"
|
||||||
|
echo Installing ${name} ${vers}
|
||||||
|
curl -L "https://github.com/${git_repo}/releases/download/${vers}/${name}-linux-${architecture}.tar.gz" -o ${name}.tar.gz
|
||||||
|
tar xzf "${name}.tar.gz" -C .
|
||||||
|
install -Dm755 "./${name}" "${pkgdir}/usr/local/bin/${name}"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue