# Maintainer: QBZ Team pkgname=qbz pkgver=0.1.0 pkgrel=1 pkgdesc="Native Qobuz client for Linux with bit-perfect playback" arch=(x86_64) url="https://github.com/vicrodh/qbz" license=(MIT) depends=( alsa-lib gtk3 libappindicator-gtk3 libxkbcommon openssl webkit2gtk ) makedepends=( nodejs npm rust cargo pkgconf clang ) optdepends=( 'alsa-utils: Required for bit-perfect device detection and better ALSA device names' 'pipewire-alsa: PipeWire audio support' 'pipewire-pulse: PulseAudio compatibility' ) source=("https://github.com/vicrodh/qbz/archive/refs/tags/v${pkgver}.tar.gz") sha256sums=('SKIP') build() { cd "${srcdir}/qbz-${pkgver}" npm ci npm run build npx tauri build --no-bundle } package() { cd "${srcdir}/qbz-${pkgver}" install -Dm755 src-tauri/target/release/qbz "${pkgdir}/usr/bin/qbz" # .desktop basename and Icon MUST be the app-id so GNOME resolves the MPRIS # app icon (MPRIS DesktopEntry = com.blitzfc.qbz → .desktop → Icon=). install -Dm644 packaging/arch/com.blitzfc.qbz.desktop "${pkgdir}/usr/share/applications/com.blitzfc.qbz.desktop" install -Dm644 src-tauri/icons/128x128.png "${pkgdir}/usr/share/icons/hicolor/128x128/apps/com.blitzfc.qbz.png" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }