diff mbox series

[1/1] package/zoxide: new package

Message ID 20240302191215.2743208-1-kazemi.ms@gmail.com
State Accepted
Headers show
Series [1/1] package/zoxide: new package | expand

Commit Message

Saeed Kazemi March 2, 2024, 7:12 p.m. UTC
A smarter cd command. Supports all major shells.

https://github.com/ajeetdsouza/zoxide.git

Signed-off-by: Saeed Kazemi <kazemi.ms@gmail.com>
---
 DEVELOPERS                 |  1 +
 package/Config.in          |  1 +
 package/zoxide/Config.in   | 11 +++++++++++
 package/zoxide/zoxide.hash |  3 +++
 package/zoxide/zoxide.mk   | 12 ++++++++++++
 5 files changed, 28 insertions(+)
 create mode 100644 package/zoxide/Config.in
 create mode 100644 package/zoxide/zoxide.hash
 create mode 100644 package/zoxide/zoxide.mk

Comments

Thomas Petazzoni July 12, 2024, 1:33 p.m. UTC | #1
On Sat,  2 Mar 2024 20:12:15 +0100
Saeed Kazemi <kazemi.ms@gmail.com> wrote:

> A smarter cd command. Supports all major shells.
> 
> https://github.com/ajeetdsouza/zoxide.git
> 
> Signed-off-by: Saeed Kazemi <kazemi.ms@gmail.com>
> ---
>  DEVELOPERS                 |  1 +
>  package/Config.in          |  1 +
>  package/zoxide/Config.in   | 11 +++++++++++
>  package/zoxide/zoxide.hash |  3 +++
>  package/zoxide/zoxide.mk   | 12 ++++++++++++
>  5 files changed, 28 insertions(+)
>  create mode 100644 package/zoxide/Config.in
>  create mode 100644 package/zoxide/zoxide.hash
>  create mode 100644 package/zoxide/zoxide.mk

I had to fix up the hash file a bit because we did some changes to how
Cargo packages are vendored, but other than that it looked good: patch
applied! Thanks for your contribution!

Thomas
diff mbox series

Patch

diff --git a/DEVELOPERS b/DEVELOPERS
index 0bfe91f064..60a2544ef5 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2733,6 +2733,7 @@  F:	package/biosdevname/
 N:	Saeed Kazemi <kazemi.ms@gmail.com>
 F:	package/eza/
 F:	package/procs/
+F:	package/zoxide/
 
 N:	Sam Lancia <sam@gpsm.co.uk>
 F:	package/lrzip/
diff --git a/package/Config.in b/package/Config.in
index bf0fe078b9..d39d6ec1c2 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -2707,6 +2707,7 @@  comment "Utilities"
 	source "package/xmlstarlet/Config.in"
 	source "package/xxhash/Config.in"
 	source "package/ytree/Config.in"
+	source "package/zoxide/Config.in"
 endmenu
 
 menu "System tools"
diff --git a/package/zoxide/Config.in b/package/zoxide/Config.in
new file mode 100644
index 0000000000..b2567dad0b
--- /dev/null
+++ b/package/zoxide/Config.in
@@ -0,0 +1,11 @@ 
+config BR2_PACKAGE_ZOXIDE
+	bool "zoxide"
+	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
+	select BR2_PACKAGE_HOST_RUSTC
+	help
+	  zoxide is a smarter cd command, inspired by z and autojump.
+	  It remembers which directories you use most frequently, so
+	  you can "jump" to them in just a few keystrokes.
+	  zoxide works on all major shells.
+
+	  https://github.com/ajeetdsouza/zoxide.git
diff --git a/package/zoxide/zoxide.hash b/package/zoxide/zoxide.hash
new file mode 100644
index 0000000000..d1a765e3bd
--- /dev/null
+++ b/package/zoxide/zoxide.hash
@@ -0,0 +1,3 @@ 
+# Locally computed
+sha256  792e66d35bc770609e1dd3858a41f5ba66af24d9801c88a5d117e63d95ef6672  zoxide-0.9.4.tar.gz
+sha256  23aa3b08366e4ed6050f3d9950070201802aadbe5675fa1c19f24f4de91cf294  LICENSE
diff --git a/package/zoxide/zoxide.mk b/package/zoxide/zoxide.mk
new file mode 100644
index 0000000000..92b4395a87
--- /dev/null
+++ b/package/zoxide/zoxide.mk
@@ -0,0 +1,12 @@ 
+################################################################################
+#
+# zoxide
+#
+################################################################################
+
+ZOXIDE_VERSION = 0.9.4
+ZOXIDE_SITE = $(call github,ajeetdsouza,zoxide,v$(ZOXIDE_VERSION))
+ZOXIDE_LICENSE = MIT
+ZOXIDE_LICENSE_FILES = LICENSE
+
+$(eval $(cargo-package))