Files
qbz/packaging/aur/PKGBUILD
T

51 lines
2.4 KiB
Bash

# Maintainer: blitzkriegfc <blitzkriegfc@gmail.com>
pkgname=qbz-bin
pkgver=1.1.11
pkgrel=1
pkgdesc="Native Qobuz client for Linux with bit-perfect hi-res audio, DAC passthrough, Last.fm scrobbling, and Chromecast/DLNA casting"
arch=('x86_64' 'aarch64')
url="https://github.com/vicrodh/qbz"
license=('MIT')
# v2.1+ Qt binary: no webkit/gtk/appindicator. qt6-svg is load-bearing for
# the imageformats/qsvg plugin used by the shipped SVG icon set.
depends=('qt6-base>=6.8' 'qt6-declarative>=6.8' 'qt6-svg>=6.8' 'qt6-wayland' 'alsa-lib' 'fontconfig' 'freetype2' 'libpng' 'bzip2' 'expat' 'zlib'
'libxkbcommon' 'wayland' 'libglvnd' 'dbus')
optdepends=(
'alsa-utils: Required for bit-perfect device detection and better ALSA device names'
'pipewire-alsa: PipeWire audio support'
'pipewire-pulse: PulseAudio compatibility'
'vulkan-driver: GPU-accelerated rendering (wgpu)'
)
provides=('qbz')
conflicts=('qbz')
options=('!strip')
source_x86_64=("${pkgname}-${pkgver}-x86_64.tar.gz::https://github.com/vicrodh/qbz/releases/download/v${pkgver}/qbz_${pkgver}_amd64.tar.gz")
source_aarch64=("${pkgname}-${pkgver}-aarch64.tar.gz::https://github.com/vicrodh/qbz/releases/download/v${pkgver}/qbz_${pkgver}_aarch64.tar.gz")
sha256sums_x86_64=('SKIP')
sha256sums_aarch64=('SKIP')
package() {
if [ "$CARCH" = "x86_64" ]; then
_arch="amd64"
elif [ "$CARCH" = "aarch64" ]; then
_arch="aarch64"
fi
cd "${srcdir}/qbz_${pkgver}_${_arch}"
# Install binary
install -Dm755 "qbz" "${pkgdir}/usr/bin/qbz"
# Install desktop file. MPRIS publishes DesktopEntry=com.blitzfc.qbz:
# the installed basename MUST match or the GNOME/Plasma media widget
# loses its icon (scripts/packaging/desktop_entry_check.sh).
install -Dm644 "qbz.desktop" "${pkgdir}/usr/share/applications/com.blitzfc.qbz.desktop"
# Install icons (freedesktop hicolor structure)
install -Dm644 "icons/hicolor/32x32/apps/qbz.png" "${pkgdir}/usr/share/icons/hicolor/32x32/apps/qbz.png"
install -Dm644 "icons/hicolor/48x48/apps/qbz.png" "${pkgdir}/usr/share/icons/hicolor/48x48/apps/qbz.png"
install -Dm644 "icons/hicolor/64x64/apps/qbz.png" "${pkgdir}/usr/share/icons/hicolor/64x64/apps/qbz.png"
install -Dm644 "icons/hicolor/128x128/apps/qbz.png" "${pkgdir}/usr/share/icons/hicolor/128x128/apps/qbz.png"
install -Dm644 "icons/hicolor/256x256/apps/qbz.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/qbz.png"
}