net-misc/ffsend: add 9999

Signed-off-by: Mattéo Rossillol‑‑Laruelle <beatussum@protonmail.com>
This commit is contained in:
Mattéo Rossillol‑‑Laruelle
2025-06-08 14:19:33 +02:00
parent 000e1634a6
commit 1e864dac04
2 changed files with 84 additions and 5 deletions

View File

@@ -10,10 +10,17 @@ inherit cargo optfeature shell-completion
DESCRIPTION="Easily and securely share files from the command line"
HOMEPAGE="https://timvisee.com/projects/ffsend/"
SRC_URI="
https://github.com/timvisee/ffsend/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/beatussum/gentoo-tarballs/releases/download/latest/${P}-crates.tar.xz
"
if [[ "${PV}" = "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/timvisee/ffsend.git"
else
SRC_URI="
https://github.com/timvisee/ffsend/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/beatussum/gentoo-tarballs/releases/download/latest/${P}-crates.tar.xz
"
KEYWORDS="~amd64"
fi
LICENSE="GPL-3"
@@ -21,7 +28,6 @@ LICENSE="GPL-3"
LICENSE+=" Apache-2.0 BSD-2 BSD ISC MIT MPL-2.0 Unicode-DFS-2016"
SLOT="0"
KEYWORDS="~amd64"
DOCS=(
res/
@@ -30,6 +36,15 @@ DOCS=(
SECURITY.md
)
src_unpack() {
if [[ "${PV}" = "9999" ]]; then
git-r3_src_unpack
cargo_live_src_unpack
else
cargo_src_unpack
fi
}
src_install() {
einstalldocs
cargo_src_install