eeb55a1956
- Added patch to fix MPRIS support detection - Moved openmpt plugin to a separate package `musikcube-openmpt`
65 lines
1.8 KiB
Bash
65 lines
1.8 KiB
Bash
# Template file for 'musikcube'
|
|
pkgname=musikcube
|
|
version=0.97.0
|
|
revision=1
|
|
build_style=cmake
|
|
make_cmd=make
|
|
configure_args="-DNO_NCURSESW=1 -DENABLE_SNDIO=true -DENABLE_PIPEWIRE=true
|
|
-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/"
|
|
distfiles="https://github.com/clangen/musikcube/archive/${version}.tar.gz"
|
|
checksum=ab170c5100251fcd6c8fd3c32eea45e9854c6c6272c6b0970bffbfc55d0b2ec5
|
|
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
|
|
}
|
|
}
|