From fc8dc3562a0ba02ab505cb3f721f3549250d2167 Mon Sep 17 00:00:00 2001 From: Rien Maertens Date: Mon, 6 Jul 2020 14:08:31 +0200 Subject: [PATCH] New package: ncspot-0.2.0 --- srcpkgs/ncspot/template | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 srcpkgs/ncspot/template diff --git a/srcpkgs/ncspot/template b/srcpkgs/ncspot/template new file mode 100644 index 00000000000..223c31afda8 --- /dev/null +++ b/srcpkgs/ncspot/template @@ -0,0 +1,31 @@ +# Template file for 'ncspot' +pkgname=ncspot +version=0.2.0 +revision=1 +build_style=cargo +configure_args="--no-default-features" +hostmakedepends="pkg-config python3" +makedepends="libressl-devel ncurses-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 written in Rust" +maintainer="Rien Maertens " +license="BSD-2-Clause" +homepage="https://github.com/hrkfdn/ncspot/" +distfiles="${homepage}/archive/v${version}.tar.gz" +checksum=876553020e53b8bbf7dac1ddf18f69115d622b302506ce5dc1c3bac1b59ef39b +nocross="ncurses exec format error" + +_features="cursive/pancurses-backend" +_features+="$(vopt_if libxcb ',share_clipboard')" +_features+="$(vopt_if alsa ',alsa_backend')" +_features+="$(vopt_if pulseaudio ',pulseaudio_backend')" +_features+="$(vopt_if dbus ',mpris')" + +if [ "$_features" ]; then + configure_args+=" --features $_features" +fi + +post_install() { + vlicense LICENSE +}