Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yazi: new, 0.1.5 #4883

Merged
merged 1 commit into from
Dec 9, 2023
Merged
Show file tree
Hide file tree
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
12 changes: 12 additions & 0 deletions app-utils/yazi/autobuild/beyond
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
abinfo "Installing completions ..."
mkdir -pv "$PKGDIR"/usr/share/bash-completion/completions
cp -v "$SRCDIR"/config/completions/yazi.bash \
"$PKGDIR"/usr/share/bash-completion/completions/yazi.bash

mkdir -pv "$PKGDIR"/usr/share/fish/completions
cp -v "$SRCDIR"/config/completions/yazi.fish \
"$PKGDIR"/usr/share/fish/completions/yazi.fish

mkdir -pv "$PKGDIR"/usr/share/zsh/site-functions
cp -v "$SRCDIR"/config/completions/_yazi \
"$PKGDIR"/usr/share/zsh/site-functions/_yazi
10 changes: 10 additions & 0 deletions app-utils/yazi/autobuild/defines
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PKGNAME="yazi"
PKGDES="A file manager for the terminal"
PKGDEP="glibc gcc-runtime jq"
BUILDDEP="rustc"
PKGSEC=utils

ABSPLITDBG=0

# FIXME: mlua-sys must be compiled with gcc
NOLTO=1
51 changes: 51 additions & 0 deletions app-utils/yazi/autobuild/patches/0001-fix-compile.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
From 882b54d5a9a26720bdc0e74590aa52f2b23f4887 Mon Sep 17 00:00:00 2001
From: eatradish <[email protected]>
Date: Thu, 7 Dec 2023 01:25:58 -0800
Subject: [PATCH] fix compile

---
core/src/tab/mod.rs | 2 +-
plugin/src/bindings/mod.rs | 2 +-
plugin/src/lib.rs | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/src/tab/mod.rs b/core/src/tab/mod.rs
index ebcd998..422995e 100644
--- a/core/src/tab/mod.rs
+++ b/core/src/tab/mod.rs
@@ -7,7 +7,7 @@ mod mode;
mod tab;

pub use backstack::*;
-pub use config::*;
+pub use self::config::*;
pub use finder::*;
pub use folder::*;
pub use mode::*;
diff --git a/plugin/src/bindings/mod.rs b/plugin/src/bindings/mod.rs
index 60bbb91..d419dcc 100644
--- a/plugin/src/bindings/mod.rs
+++ b/plugin/src/bindings/mod.rs
@@ -10,6 +10,6 @@ mod tasks;
pub use active::*;
pub use bindings::*;
pub use files::*;
-pub use shared::*;
+pub use self::shared::*;
pub use tabs::*;
pub use tasks::*;
diff --git a/plugin/src/lib.rs b/plugin/src/lib.rs
index b383da4..286a96e 100644
--- a/plugin/src/lib.rs
+++ b/plugin/src/lib.rs
@@ -8,6 +8,6 @@ mod plugin;
mod scope;
mod utils;

-use config::*;
+use self::config::*;
pub use plugin::*;
pub use scope::*;
--
2.39.1

4 changes: 4 additions & 0 deletions app-utils/yazi/spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
VER=0.1.5
SRCS="git::commit=tags/v$VER::https://github.com/sxyazi/yazi"
CHKSUMS="SKIP"
CHKUPDATE="anitya::id=370571"