void-packages/srcpkgs/spotify-tui/template

27 lines
876 B
Bash

# Template file for 'spotify-tui'
pkgname=spotify-tui
version=0.25.0
revision=2
build_style=cargo
hostmakedepends="pkg-config python3"
makedepends="openssl-devel python3-devel libxcb-devel"
short_desc="Spotify for the terminal"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="MIT"
homepage="https://github.com/Rigellute/spotify-tui"
distfiles="https://github.com/Rigellute/spotify-tui/archive/v${version}.tar.gz"
checksum=9d6fa998e625ceff958a5355b4379ab164ba76575143a7b6d5d8aeb6c36d70a7
pre_build() {
# fix various compilation issues
cargo update --package num-traits:0.2.12 --precise 0.2.15
cargo update --package num-integer:0.1.43 --precise 0.1.45
cargo update --package autocfg:1.0.0 --precise 1.1.0
cargo update --package socket2:0.3.12 --precise 0.3.19
}
post_install() {
mv ${DESTDIR}/usr/bin/spt ${DESTDIR}/usr/bin/spotify-tui
vlicense LICENSE
}