Skip to content

lf: add lf version 27 #2735

Merged
merged 1 commit into from
Aug 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions lf.be0
Original file line number Diff line number Diff line change
@@ -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
}