mirror of
https://github.com/Felitendo/spotifast.git
synced 2026-11-01 17:33:26 +01:00
Packages no longer install a fastpotify command or declare that they replace, provide or conflict with the old packages. Releases no longer carry the 0.9.1 bridge files, the release script only checks and sums Spotifast downloads, and the Flatpak, Homebrew, macOS and Windows recipes lose their old-identity branches and clean-ups. Packaging CI tests the v0.11.2 release instead of installing the 0.8.0 package first. The Rename page and the notes pointing to it are gone. Updates begun by 0.10.2 or earlier on Windows relaunch fastpotify.exe, which the installer no longer provides; such an install updates, but needs starting by hand once.
46 lines
2.1 KiB
Plaintext
46 lines
2.1 KiB
Plaintext
# Maintainer: Carmine Paolino <carmine@paolino.me>
|
|
pkgname=spotifast-bin
|
|
pkgver=@VERSION@
|
|
pkgrel=@PKGREL@
|
|
pkgdesc="Native Spotify client"
|
|
arch=('x86_64' 'aarch64')
|
|
url="https://github.com/crmne/spotifast"
|
|
license=('MIT')
|
|
install="${pkgname}.install"
|
|
# alsa-lib and libpulse are linked directly; the rest are dlopened by winit
|
|
# and glutin at startup, and this is a GUI-only application, so all of them
|
|
# have to be there for it to run at all.
|
|
depends=('dbus' 'alsa-lib' 'libpulse' 'libglvnd' 'libxkbcommon' 'wayland' 'libx11')
|
|
optdepends=('libxkbcommon-x11: keyboard handling in X11 sessions'
|
|
'pipewire-pulse: PipeWire as the PulseAudio server')
|
|
provides=("spotifast=$pkgver")
|
|
conflicts=('spotifast' 'spotifast-git')
|
|
options=('!debug' '!strip')
|
|
_repo="https://github.com/crmne/spotifast"
|
|
source_x86_64=("${_repo}/releases/download/v${pkgver}/spotifast-v${pkgver}-x86_64-unknown-linux-gnu.tar.gz")
|
|
source_aarch64=("${_repo}/releases/download/v${pkgver}/spotifast-v${pkgver}-aarch64-unknown-linux-gnu.tar.gz")
|
|
sha256sums_x86_64=('@AMD64_SHA256@')
|
|
sha256sums_aarch64=('@ARM64_SHA256@')
|
|
|
|
package() {
|
|
local target
|
|
case "$CARCH" in
|
|
x86_64) target="x86_64-unknown-linux-gnu" ;;
|
|
aarch64) target="aarch64-unknown-linux-gnu" ;;
|
|
esac
|
|
local dir="${srcdir}/spotifast-v${pkgver}-${target}"
|
|
|
|
install -Dm755 "${dir}/spotifast" "${pkgdir}/usr/bin/spotifast"
|
|
install -Dm644 "${dir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
install -Dm644 "${dir}/README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
|
|
install -Dm644 "${dir}/packaging/applications/spotifast.desktop" \
|
|
"${pkgdir}/usr/share/applications/spotifast.desktop"
|
|
install -Dm644 "${dir}/packaging/icons/spotifast.svg" \
|
|
"${pkgdir}/usr/share/icons/hicolor/scalable/apps/spotifast.svg"
|
|
# Older release fixtures predate the optional integration.
|
|
if [[ -d "${dir}/contrib/omarchy" ]]; then
|
|
install -Dm644 "${dir}/contrib/omarchy/spotifast.json.tpl" "${pkgdir}/usr/share/spotifast/omarchy/spotifast.json.tpl"
|
|
install -Dm755 "${dir}/contrib/omarchy/spotifast-theme" "${pkgdir}/usr/share/spotifast/omarchy/spotifast-theme"
|
|
fi
|
|
}
|