media-sound/spot: respect cargo release target

Closes: https://bugs.gentoo.org/915570
Signed-off-by: Konstantin Tutsch <mail@konstantintutsch.de>
This commit is contained in:
Konstantin Tutsch
2023-10-11 10:13:14 +02:00
parent 317a8ffa9c
commit 0993d496f2

View File

@@ -442,9 +442,15 @@ src_compile() {
cargo_src_compile
# meson_src_install won't find spot binary otherwise because cargo.sh isn't used for compiling
mv "${WORKDIR}/${P}/target/release/spot" \
"${WORKDIR}/${P}-build/src/spot" \
|| die
if use debug; then
mv "${WORKDIR}/${P}/target/debug/spot" \
"${WORKDIR}/${P}-build/src/spot" \
|| die
else
mv "${WORKDIR}/${P}/target/release/spot" \
"${WORKDIR}/${P}-build/src/spot" \
|| die
fi
}
src_install() {