summaryrefslogtreecommitdiff
path: root/media-sound/songrec/songrec-0.6.9.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/songrec/songrec-0.6.9.ebuild')
-rw-r--r--media-sound/songrec/songrec-0.6.9.ebuild65
1 files changed, 65 insertions, 0 deletions
diff --git a/media-sound/songrec/songrec-0.6.9.ebuild b/media-sound/songrec/songrec-0.6.9.ebuild
new file mode 100644
index 000000000000..76a69a0f32bc
--- /dev/null
+++ b/media-sound/songrec/songrec-0.6.9.ebuild
@@ -0,0 +1,65 @@
+# Copyright 2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES="
+"
+
+declare -A GIT_CRATES=(
+ [cpal]='https://github.com/RustAudio/cpal;509e5bba9dafb52c6e4a32492ccfb1933f1be9ed;cpal-%commit%'
+)
+
+RUST_MIN_VER="1.88.0"
+
+inherit cargo desktop xdg
+
+DESCRIPTION="An open-source Shazam client for Linux, written in Rust."
+HOMEPAGE="https://github.com/marin-m/SongRec"
+SRC_URI="
+ ${CARGO_CRATE_URIS}
+ https://github.com/marin-m/SongRec/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/setotau/gentoo-crate-tarballs/releases/download/${P}/${P}-crates.tar.xz
+"
+
+S="${WORKDIR}/SongRec-${PV}"
+# License set may be more restrictive as OR is not respected
+# use cargo-license for a more accurate license picture
+LICENSE="GPL-3+"
+# Dependent crate licenses
+LICENSE+="
+ Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD GPL-3+ ISC MIT
+ MPL-2.0 Unicode-3.0 Unlicense ZLIB
+"
+SLOT="0"
+KEYWORDS="~amd64"
+DEPEND="
+ gui-libs/gtk
+ gui-libs/libadwaita
+ media-libs/alsa-lib
+ media-video/ffmpeg
+ dev-libs/openssl
+ media-libs/libpulse
+ net-libs/libsoup
+ media-video/pipewire
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+"
+
+src_configure() {
+ export PKG_CONFIG_ALLOW_CROSS=1
+
+ cargo_src_configure
+}
+
+src_install() {
+ cargo_src_install
+ domenu packaging/rootfs/usr/share/applications/re.fossplant.songrec.desktop
+ doicon -s scalable packaging/rootfs/usr/share/icons/hicolor/scalable/apps/re.fossplant.songrec.svg
+ insinto /usr/share/metainfo
+ doins packaging/rootfs/usr/share/metainfo/re.fossplant.songrec.metainfo.xml
+ insinto /usr/share/
+ doins -r translations/locale
+}