Files
qbz/packaging/arch/PKGBUILD
T
vicrodh a6cfa36a8d fix(packaging): compile binary as qbz instead of qbz-nix
Add [[bin]] section to Cargo.toml so cargo produces target/release/qbz
directly. Update all packaging references (workflows, PKGBUILD, Flatpak
manifest, AUR desktop file) to use the new binary name. This fixes DEB
and RPM packages installing the binary as /usr/bin/qbz-nix instead of
/usr/bin/qbz.
2026-02-18 16:45:10 -06:00

48 lines
1.1 KiB
Bash

# 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
npm run tauri build -- --bundles none
}
package() {
cd "${srcdir}/qbz-${pkgver}"
install -Dm755 src-tauri/target/release/qbz "${pkgdir}/usr/bin/qbz"
install -Dm644 packaging/arch/qbz.desktop "${pkgdir}/usr/share/applications/qbz.desktop"
install -Dm644 src-tauri/icons/128x128.png "${pkgdir}/usr/share/icons/hicolor/128x128/apps/qbz.png"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}