Skip to content

Commit

Permalink
app-misc/yazi: add yazi-9999 ebuild file
Browse files Browse the repository at this point in the history
Signed-off-by: Ruowen Qin <[email protected]>
  • Loading branch information
chinrw committed Mar 11, 2024
1 parent b1b4dfc commit bed11c7
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app-misc/yazi/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>[email protected]</email>
<name>Remigiusz Micielski</name>
</maintainer>
<upstream>
<remote-id type="github">sxyazi/yazi</remote-id>
<bugs-to>https://github.com/sxyazi/yazi/issues</bugs-to>
</upstream>
</pkgmetadata>
35 changes: 35 additions & 0 deletions app-misc/yazi/yazi-9999.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cargo git-r3

DESCRIPTION="Blazing fast terminal file manager written in Rust, based on async I/O."
HOMEPAGE="https://yazi-rs.github.io/"
EGIT_REPO_URI="https://github.com/sxyazi/yazi.git"

LICENSE="MIT"
# Dependent crate licenses
LICENSE+="
Apache-2.0 BSD-2 BSD Boost-1.0 CC0-1.0 ISC MIT MPL-2.0
Unicode-DFS-2016
"
SLOT="0"
KEYWORDS="~amd64"

QA_FLAGS_IGNORED="usr/bin/${PN}"

src_unpack() {
git-r3_src_unpack
cargo_live_src_unpack
}

src_prepare() {
sed -i 's/strip = true/strip = false/' Cargo.toml || die "Sed failed!"
eapply_user
}

src_install() {
dobin target/$(usex debug debug release)/yazi
}

0 comments on commit bed11c7

Please sign in to comment.