Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
lf: add lf version 27
"lf is a terminal file manager."
...
"By default, lf does not assign 'delete' command to a key to protect new users."

8-)
  • Loading branch information
wwwutz committed Aug 29, 2022
1 parent 96e5fc1 commit 6ee4e76
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions lf.be0
@@ -0,0 +1,55 @@
#!/usr/bin/env beesh

# BEE_VERSION lf-27-0

# more info: https://github.com/gokcehan/lf/releases

#SRCURL[0]="https://github.com/gokcehan/lf/archive/refs/tags/r${PKGVERSION}.tar.gz lf-${PKGVERSION}.tar.gz"
SRCURL[0]="https://beehive.molgen.mpg.de/d66e29ae9802f085dd6d2fcc58e6828e/lf-27.tar.gz"
#
# tar file manually created after first go download
# ln -s later
#
SRCURL[1]="https://beehive.molgen.mpg.de/1d2024d2ef0f26ece87430b86a5bfa49/pkg.tar"

# PATCHURL+=()

# build_in_sourcedir

#sourcesubdir_append

#mee_extract() {
# bee_extract
#}

#mee_patch() {
# bee_patch "${@}"
#}

#mee_configure() {
# bee_configure
#}

mee_build() {
export GOPATH=${B}
export GOCACHE=${B}/.cache
export GOENV=${B}/.env
export CGO_ENABLED=0

ln -s ${S}/pkg ${B}/pkg

mkdir -p src/gokcehan
ln -vs ${S} src/gokcehan/lf

cd ${B}/src/gokcehan/lf
go get
go install -ldflags="-s -w"
}

mee_install() {
mkdir -vp ${D}/usr/bin
mkdir -vp ${D}/usr/share/man/man1

cp -v ${B}/bin/lf ${D}/usr/bin
cp -v ${S}/lf.1 ${D}/usr/share/man/man1
}

0 comments on commit 6ee4e76

Please sign in to comment.