mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
lf: add new package
https://github.com/gokcehan/lf Signed-off-by: Nate Robinson <nrobinson2000@me.com>
This commit is contained in:
committed by
Tianling Shen
parent
3211b6295b
commit
7e362a6e35
45
utils/lf/Makefile
Normal file
45
utils/lf/Makefile
Normal 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
3
utils/lf/test.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
lf --version | grep "$PKG_VERSION"
|
||||||
Reference in New Issue
Block a user