-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
26 lines (24 loc) · 876 Bytes
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Template file for 'spotify-tui'
pkgname=spotify-tui
version=0.25.0
revision=3
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
}