media-sound/rmpc: modify src_unpack() internally instead of redefining

Signed-off-by: ingenarel <ingenarelitems@gmail.com>
This commit is contained in:
ingenarel
2025-12-03 05:40:21 +06:00
parent 95d7c8642e
commit 1858635161
2 changed files with 22 additions and 12 deletions

View File

@@ -360,13 +360,9 @@ LICENSE+="
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/mierak/${PN}"
src_unpack() {
git-r3_src_unpack
cargo_live_src_unpack
}
else
SRC_URI="https://github.com/mierak/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" ${CARGO_CRATE_URIS}"
SRC_URI="https://github.com/mierak/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
${CARGO_CRATE_URIS}"
KEYWORDS="~amd64"
RESTRICT="mirror"
fi
@@ -375,6 +371,15 @@ SLOT="0"
DOCS=( README.md CHANGELOG.md )
src_unpack() {
if [[ "$PV" == *9999* ]];then
git-r3_src_unpack
cargo_live_src_unpack
else
cargo_src_unpack
fi
}
src_install() {
cargo_src_install
einstalldocs

View File

@@ -24,13 +24,9 @@ LICENSE+="
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/mierak/${PN}"
src_unpack() {
git-r3_src_unpack
cargo_live_src_unpack
}
else
SRC_URI="https://github.com/mierak/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" ${CARGO_CRATE_URIS}"
SRC_URI="https://github.com/mierak/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
${CARGO_CRATE_URIS}"
KEYWORDS="~amd64"
RESTRICT="mirror"
fi
@@ -39,6 +35,15 @@ SLOT="0"
DOCS=( README.md CHANGELOG.md )
src_unpack() {
if [[ "$PV" == *9999* ]];then
git-r3_src_unpack
cargo_live_src_unpack
else
cargo_src_unpack
fi
}
src_install() {
cargo_src_install
einstalldocs