aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorOskari Rauta <oskari.rauta@gmail.com>2024-02-28 20:34:11 +0200
committerTianling Shen <cnsztl@gmail.com>2024-03-05 11:42:00 +0800
commitb1d23435fda3a88cdb2e5b3afa5a1a196bc059d8 (patch)
tree70b7ec30934555291258760e164e2ed075700571 /utils
parentdbb40471b72e84614d289a57e8dd4d8136798f7e (diff)
lsd: add new package
ls deluxe. Substitute for ls command with style. Popular amongst people who use ohmyzsh and similar shell stylers. Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/lsd/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/utils/lsd/Makefile b/utils/lsd/Makefile
new file mode 100644
index 000000000..9b0705019
--- /dev/null
+++ b/utils/lsd/Makefile
@@ -0,0 +1,40 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=lsd
+PKG_VERSION:=1.0.0
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://codeload.github.com/lsd-rs/lsd/tar.gz/v$(PKG_VERSION)?
+PKG_HASH:=ab34e9c85bc77cfa42b43bfb54414200433a37419f3b1947d0e8cfbb4b7a6325
+
+PKG_MAINTAINER:=Oskari Rauta <oskari.rauta@gmail.com>
+PKG_LICENSE:=Apache-2.0
+PKG_LICENSE_FILES:=LICENSE
+
+PKG_BUILD_DEPENDS:=rust/host
+PKG_BUILD_PARALLEL:=1
+
+include $(INCLUDE_DIR)/package.mk
+include ../../lang/rust/rust-package.mk
+
+define Package/lsd
+ SECTION:=utils
+ CATEGORY:=Utilities
+ TITLE:=LSDeluxe
+ DEPENDS:=$(RUST_ARCH_DEPENDS) +zlib
+ URL:=https://github.com/lsd-rs/lsd
+endef
+
+define Package/lsd/description
+ This project is a rewrite of GNU ls with lots of added features like colors, icons, tree-view, more formatting
+ options etc. The project is heavily inspired by the super colorls project.
+endef
+
+define Package/lsd/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/lsd $(1)/usr/bin
+endef
+
+$(eval $(call RustBinPackage,lsd))
+$(eval $(call BuildPackage,lsd))