gentoo: updated widget deps to use guru songrec

oops
This commit is contained in:
jwihardi
2026-03-24 16:40:25 -04:00
parent a9721c7cfe
commit 2ed29f5c46
4 changed files with 2 additions and 54 deletions
@@ -1,48 +0,0 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Illogicall Impulse Widget Dependencies"
HOMEPAGE=""
SRC_URI="https://github.com/marin-m/SongRec/archive/${PV}.tar.gz -> ${P}-SongRec.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
# need for cargo fetch, idk how to get around it if possible
RESTRICT="strip network-sandbox"
DEPEND=""
RDEPEND=""
S="${WORKDIR}/SongRec-${PV}"
src_prepare() {
default
export CARGO_HOME="${WORKDIR}/cargo"
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
src_compile() {
export CARGO_HOME="${WORKDIR}/cargo"
cargo build --release --frozen --offline
}
src_install() {
dobin target/release/songrec
insinto /usr/share/applications
doins packaging/rootfs/usr/share/applications/com.github.marinm.songrec.desktop
insinto /usr/share/icons/hicolor/scalable/apps
doins packaging/rootfs/usr/share/icons/hicolor/scalable/apps/com.github.marinm.songrec.svg
insinto /usr/share/metainfo
doins packaging/rootfs/usr/share/metainfo/com.github.marinm.songrec.metainfo.xml
insinto /usr/share/songrec/translations
doins -r translations/*
dodoc README.md
}