SongRec (a Shazam song recognition alternative)

Indeed an open-source Shazam client for Linux, written in Rust.

There seemed to be an issue on the last snap package creation attempt with libasound. Can a working snap package be achieved currently though? https://github.com/marin-m/SongRec/issues/5#issuecomment-723423597

Could the dev be helped on this? He’s positive on a snap package if it could be done.

I tried to make a snap, however there is only 1 week that I’m into snap making…

name: songrec
base: core22
version: '1.0'
summary:  Shazam client.
description: |
  SongRec is an open-source Shazam client for Linux, written in Rust.

grade: devel # 'devel' -> 'stable' to release into candidate/stable channels
confinement: devmode  # 'devmode' -> 'strict' to release

parts:
  songrec:
    plugin: rust
    build-packages: [cargo, rustc]
    source: https://github.com/marin-m/SongRec.git
    override-pull: |
      craftctl default
      rustup default stable

apps:
  songrec:
#    extensions: [gnome-3-38]  # core20
    extensions: [gnome]  # core22+
    command: bin/songrec
    plugs:
      - home
      - removable-media
      - audio-playback
      - desktop
      - desktop-legacy
      - wayland
      - x11

I’m stuck there:

 snapcraft
Failed to run the build script for part 'songrec'.a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.                        
Check the build output and verify the project can work with the 'rust' plugin.                            
Failed to execute pack in instance.                                                                                                                          
Recommended resolution: Run the same command again with --debug to shell into the environment if you wish to introspect this failure.                        
Full execution log: '/home/user/.local/state/snapcraft/log/snapcraft-20240818-230744.280213.log