lf: add new package

https://github.com/gokcehan/lf

Signed-off-by: Nate Robinson <nrobinson2000@me.com>
This commit is contained in:
Nate Robinson
2025-07-02 10:53:03 -04:00
committed by Tianling Shen
parent 3211b6295b
commit 7e362a6e35
2 changed files with 48 additions and 0 deletions

45
utils/lf/Makefile Normal file
View File

@@ -0,0 +1,45 @@
# SPDX-License-Identifier: MIT
#
# Copyright (C) 2025 Nate Robinson
include $(TOPDIR)/rules.mk
PKG_NAME:=lf
PKG_VERSION:=35
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/gokcehan/lf.git
PKG_SOURCE_VERSION:=r$(PKG_VERSION)
PKG_MIRROR_HASH:=428e3e07dfae49dc1da079b77793b1e09e08afd3d7355f887ca7d2706b9d9be9
PKG_MAINTAINER:=Nate Robinson <nrobinson2000@me.com>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
PKG_BUILD_DEPENDS:=golang/host
PKG_BUILD_PARALLEL:=1
PKG_BUILD_FLAGS:=no-mips16
GO_PKG:=github.com/gokcehan/lf
GO_PKG_LDFLAGS_X:=main.gVersion=$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
include ../../lang/golang/golang-package.mk
define Package/lf
SUBMENU:=Filesystem
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Terminal file manager
URL:=https://github.com/gokcehan/lf
DEPENDS:=$(GO_ARCH_DEPENDS)
endef
define Package/lf/description
lf (as in "list files") is a terminal file manager written in Go
with a heavy inspiration from the ranger file manager.
endef
$(eval $(call GoBinPackage,lf))
$(eval $(call BuildPackage,lf))

3
utils/lf/test.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
lf --version | grep "$PKG_VERSION"