blob: 76a69a0f32bc0036a2fa05562643a2207c423773 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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
}
|