# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=songrec pkgver=0.3.2 pkgrel=2 pkgdesc="Open-source Shazam client for Linux" url="https://github.com/marin-m/SongRec" # s390x fails to build # riscv64: rust broken arch="all !s390x !riscv64" license="GPL-3.0-only" makedepends=" alsa-lib-dev cargo cargo-auditable gdk-pixbuf-dev glib-dev gtk+3.0-dev openssl-dev>3 pango-dev " source="https://github.com/marin-m/songrec/archive/$pkgver/songrec-$pkgver.tar.gz" # net required to download Rust dependencies # no tests options="net !check" builddir="$srcdir/SongRec-$pkgver" prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build --release --frozen } check() { cargo test --frozen } package() { install -Dm755 target/release/songrec -t "$pkgdir"/usr/bin/ mv packaging/rootfs/usr/share "$pkgdir"/usr } sha512sums=" 549a92aebf2bc34e8f9ddfd193ceefaad486179f301b6f21b5fd61fc1790e6a18b0e88f3f7633dcae6c8443968583fa1df5d990b926a5e649154daec554f7fa5 songrec-0.3.2.tar.gz "