35 lines
1.2 KiB
Bash
35 lines
1.2 KiB
Bash
# Template file for 'ncspot'
|
|
pkgname=ncspot
|
|
version=0.13.3
|
|
revision=2
|
|
build_style=cargo
|
|
build_helper="qemu"
|
|
configure_args="--features alsa_backend,cover"
|
|
hostmakedepends="pkg-config python3"
|
|
makedepends="openssl-devel dbus-devel pulseaudio-devel alsa-lib-devel"
|
|
depends="ueberzug"
|
|
short_desc="Cross-platform ncurses Spotify client"
|
|
maintainer="Omar Zeghouani <omarzeghouanii@gmail.com>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://github.com/hrkfdn/ncspot"
|
|
changelog="https://github.com/hrkfdn/ncspot/releases"
|
|
distfiles="https://github.com/hrkfdn/ncspot/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=316995d5bbef59c7a8699c8e7c3b3bc7699a38395a7d3500771abe4ca51b4d50
|
|
|
|
post_build() {
|
|
cargo auditable build --release --target ${RUST_TARGET} --package xtask
|
|
vtargetrun target/${RUST_TARGET}/release/xtask generate-shell-completion
|
|
vtargetrun target/${RUST_TARGET}/release/xtask generate-manpage
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
vinstall misc/ncspot.desktop 644 usr/share/applications
|
|
vinstall images/logo.svg 644 usr/share/icons/hicolor/scalable/apps ncspot.svg
|
|
|
|
vman misc/ncspot.1
|
|
vcompletion misc/ncspot.bash bash
|
|
vcompletion misc/_ncspot zsh
|
|
vcompletion misc/ncspot.fish fish
|
|
}
|