66 lines
1.9 KiB
Bash
66 lines
1.9 KiB
Bash
# Template file for 'musikcube'
|
|
pkgname=musikcube
|
|
version=0.98.0
|
|
revision=1
|
|
build_style=cmake
|
|
make_cmd=make
|
|
configure_args="-DNO_NCURSESW=1 -DENABLE_BUNDLED_TAGLIB=false"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="boost-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
|
|
$(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=a4ae9d6d0fa5ce99de2e7bbc1de75cc8638704a2284b38a51178e23bbe55499c
|
|
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-sndio_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - sndio output plugin"
|
|
pkg_install() {
|
|
vmove usr/lib/musikcube/plugins/libsndioout.so
|
|
}
|
|
}
|
|
|
|
musikcube-pipewire_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - pipewire output plugin"
|
|
pkg_install() {
|
|
vmove usr/lib/musikcube/plugins/libpipewireout.so
|
|
}
|
|
}
|
|
|
|
musikcube-openmpt_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - openmpt decoder plugin"
|
|
pkg_install() {
|
|
vmove usr/lib/musikcube/plugins/libopenmptdecoder.so
|
|
}
|
|
}
|