diff options
| author | emmett1 <me@emmett1.my> | 2026-05-26 00:26:38 +0800 |
|---|---|---|
| committer | emmett1 <me@emmett1.my> | 2026-05-26 00:26:38 +0800 |
| commit | e901792f8ee9ea70421eab3fd8ff6cca097be5c9 (patch) | |
| tree | 8a39b9a619a0151acb574a666bcbd24bd48f07f9 | |
| parent | 4924ecfb94904195c1deb044d87444389d1a0d1c (diff) | |
| download | alicelinux-e901792f8ee9ea70421eab3fd8ff6cca097be5c9.tar.gz alicelinux-e901792f8ee9ea70421eab3fd8ff6cca097be5c9.zip | |
yazi: new added
| -rw-r--r-- | repos/extra/yazi/.checksum | 2 | ||||
| -rw-r--r-- | repos/extra/yazi/.files | 4 | ||||
| -rw-r--r-- | repos/extra/yazi/abuild | 12 | ||||
| -rw-r--r-- | repos/extra/yazi/no-jemalloc.patch | 65 |
4 files changed, 83 insertions, 0 deletions
diff --git a/repos/extra/yazi/.checksum b/repos/extra/yazi/.checksum new file mode 100644 index 00000000..652bd567 --- /dev/null +++ b/repos/extra/yazi/.checksum @@ -0,0 +1,2 @@ +4c80b4a10612f247f7686ae02b277be2a8beef5c47e7b376d16655903e3bd814 no-jemalloc.patch +5d8bfb556ff1e50add1697ffb8fb2523290e8b5ebbb976bebaa3d09025b480cb yazi-v26.5.6.tar.gz diff --git a/repos/extra/yazi/.files b/repos/extra/yazi/.files new file mode 100644 index 00000000..22798b67 --- /dev/null +++ b/repos/extra/yazi/.files @@ -0,0 +1,4 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/ya +-rwxr-xr-x root/root usr/bin/yazi diff --git a/repos/extra/yazi/abuild b/repos/extra/yazi/abuild new file mode 100644 index 00000000..5f33568b --- /dev/null +++ b/repos/extra/yazi/abuild @@ -0,0 +1,12 @@ +name=yazi +version=26.5.6 +release=1 +source="https://github.com/sx${name}/${name}/archive/v${version}/${name}-v${version}.tar.gz + no-jemalloc.patch" + +build() { + cargo fetch --locked --target host-tuple + cargo build --release --frozen --no-default-features + install -Dm755 target/release/yazi $PKG/usr/bin/yazi + install -Dm755 target/release/ya $PKG/usr/bin/ya +} diff --git a/repos/extra/yazi/no-jemalloc.patch b/repos/extra/yazi/no-jemalloc.patch new file mode 100644 index 00000000..713a0d1d --- /dev/null +++ b/repos/extra/yazi/no-jemalloc.patch @@ -0,0 +1,65 @@ +diff --git a/Cargo.lock b/Cargo.lock +index 7644bb7..513617b 100644 +--- a/Cargo.lock ++++ b/Cargo.lock +@@ -4350,26 +4350,6 @@ dependencies = [ + "cfg-if", + ] + +-[[package]] +-name = "tikv-jemalloc-sys" +-version = "0.6.1+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7" +-source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "cd8aa5b2ab86a2cefa406d889139c162cbb230092f7d1d7cbc1716405d852a3b" +-dependencies = [ +- "cc", +- "libc", +-] +- +-[[package]] +-name = "tikv-jemallocator" +-version = "0.6.1" +-source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "0359b4327f954e0567e69fb191cf1436617748813819c94b8cd4a431422d053a" +-dependencies = [ +- "libc", +- "tikv-jemalloc-sys", +-] +- + [[package]] + name = "time" + version = "0.3.44" +@@ -5616,7 +5596,6 @@ dependencies = [ + "ratatui", + "scopeguard", + "signal-hook-tokio", +- "tikv-jemallocator", + "tokio", + "tokio-stream", + "tracing", +diff --git a/yazi-fm/Cargo.toml b/yazi-fm/Cargo.toml +index 914c684..09c9425 100644 +--- a/yazi-fm/Cargo.toml ++++ b/yazi-fm/Cargo.toml +@@ -69,9 +69,6 @@ signal-hook-tokio = { version = "0.4.0", features = [ "futures-v0_3" ] } + [target.'cfg(target_os = "macos")'.dependencies] + crossterm = { workspace = true, features = [ "use-dev-tty", "libc" ] } + +-[target.'cfg(all(not(target_os = "macos"), not(target_os = "windows")))'.dependencies] +-tikv-jemallocator = "0.6.1" +- + [[bin]] + name = "yazi" + path = "src/main.rs" +diff --git a/yazi-fm/src/main.rs b/yazi-fm/src/main.rs +index 6f7f015..fffdfce 100644 +--- a/yazi-fm/src/main.rs ++++ b/yazi-fm/src/main.rs +@@ -1,7 +1,3 @@ +-#[cfg(all(not(target_os = "macos"), not(target_os = "windows")))] +-#[global_allocator] +-static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc; +- + yazi_macro::mod_pub!(app cmp confirm help input mgr notify pick spot tasks which); + + yazi_macro::mod_flat!(dispatcher executor logs panic root router signals term); |