From 6ee4e769b202ffe037b0453d827758b401e51789 Mon Sep 17 00:00:00 2001 From: Peter Marquardt Date: Mon, 29 Aug 2022 11:35:35 +0200 Subject: [PATCH] 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-) --- lf.be0 | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100755 lf.be0 diff --git a/lf.be0 b/lf.be0 new file mode 100755 index 000000000..4241ff542 --- /dev/null +++ b/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 +}