void-packages/srcpkgs/musikcube/template

90 lines
2.4 KiB
Bash

# Template file for 'musikcube'
pkgname=musikcube
version=0.99.4
revision=1
build_style=cmake
make_cmd=make
configure_args="-DNO_NCURSESW=1"
hostmakedepends="pkg-config"
makedepends="libgme-devel libogg-devel libmicrohttpd-devel ffmpeg-devel
openssl-devel pulseaudio-devel lame-devel zlib-devel alsa-lib-devel
libvorbis-devel libcurl-devel ncurses-devel libev-devel taglib-devel
sndio-devel pipewire-devel ncurses-libtinfo-devel libopenmpt-devel
portaudio-devel asio $(vopt_if elogind elogind-devel)"
short_desc="Terminal-based music player in c++"
maintainer="Subhaditya Nath <sn03.general@gmail.com>"
license="BSD-3-Clause"
homepage="https://musikcube.com/"
changelog="https://raw.githubusercontent.com/clangen/musikcube/master/CHANGELOG.txt"
distfiles="https://github.com/clangen/musikcube/archive/${version}.tar.gz"
checksum=dd8e74c8c8460250c0da325941db2df0f7dcca77f2c68a0295ab21e81f8dd8a4
build_options="elogind"
desc_option_elogind="Support MPRIS interface via elogind"
build_options_default="elogind"
export CMAKE_GENERATOR="Unix Makefiles"
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
fi
post_install() {
vlicense LICENSE.txt
}
musikcube-devel_package() {
depends="${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
}
}
musikcube-alsa_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - alsa output plugin"
pkg_install() {
vmove usr/lib/musikcube/plugins/libalsaout.so
}
}
musikcube-pipewire_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - pipewire output plugin"
pkg_install() {
vmove usr/lib/musikcube/plugins/libpipewireout.so
}
}
musikcube-portaudio_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - portaudio output plugin"
pkg_install() {
vmove usr/lib/musikcube/plugins/libportaudioout.so
}
}
musikcube-sndio_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - sndio output plugin"
pkg_install() {
vmove usr/lib/musikcube/plugins/libsndioout.so
}
}
musikcube-gme_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - gme decoder plugin"
pkg_install() {
vmove usr/lib/musikcube/plugins/libgmedecoder.so
}
}
musikcube-openmpt_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - openmpt decoder plugin"
pkg_install() {
vmove usr/lib/musikcube/plugins/libopenmptdecoder.so
}
}