Add PKGBUILDs and GitHub Actions workflows for: - qbz: compiles from release source tarball - qbz-git: compiles from main branch (updates on push) Fix --bundles none -> --no-bundle for Tauri 2.0 CLI
48 lines
1.1 KiB
Bash
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
|
|
npx tauri build --no-bundle
|
|
}
|
|
|
|
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"
|
|
}
|