Skip to content

Commit

Permalink
New package: ncspot-0.9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
ram02z committed Mar 10, 2022
1 parent 66eaeca commit 39a84d6
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions srcpkgs/ncspot/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Template file for 'ncspot'
pkgname=ncspot
version=0.9.6
revision=1
build_style=cargo
configure_args="--no-default-features"
hostmakedepends="pkg-config python3"
makedepends="openssl-devel $(vopt_if libxcb libxcb-devel)
$(vopt_if dbus dbus-devel) $(vopt_if alsa alsa-lib-devel)
$(vopt_if pulseaudio pulseaudio-devel)"
short_desc="Cross-platform ncurses Spotify client"
maintainer="Omar Zeghouani <[email protected]>"
license="BSD-2-Clause"
homepage="https://github.com/hrkfdn/ncspot"
distfiles="https://github.com/hrkfdn/ncspot/archive/v${version}.tar.gz"
checksum=43f3108bffac6d735280d96feb9a49ca61674c9efebd553e1551d61b389bab93

build_options="libxcb dbus alsa pulseaudio notify cover"
build_options_default="libxcb dbus alsa pulseaudio notify"
desc_option_libxcb="Enable support for X clipboard access"
desc_option_cover="Enable support for cover art"

_features="cursive/termion-backend"
_features+="$(vopt_if libxcb ',share_clipboard,share_selection')"
_features+="$(vopt_if dbus ',mpris')"
_features+="$(vopt_if alsa ',alsa_backend')"
_features+="$(vopt_if pulseaudio ',pulseaudio_backend')"
_features+="$(vopt_if notify ',notify')"
_features+="$(vopt_if cover ',cover')"

configure_args+=" --features $_features"

post_patch() {
# fixes an indexmap error when cross compiling
cargo update --package autocfg --precise 1.1.0
}

post_install() {
vlicense LICENSE
}

0 comments on commit 39a84d6

Please sign in to comment.