# Template file for 'mpd' pkgname=mpd version=0.21.2 revision=1 build_style=meson configure_args="-Dopus=enabled -Dmikmod=enabled -Dneighbor=true -Dsoundcloud=enabled -Dpipe=true -Dtwolame=enabled -Dsidplay=enabled -Dbzip2=enabled -Dzzip=enabled -Dsmbclient=disabled -Dsystemd=disabled -Dqobuz=disabled -Dlibwrap=disabled -Dchromaprint=enabled -Dsoxr=enabled -Dshout=disabled -Dadplug=disabled -Dfluidsynth=disabled -Dgme=disabled -Dwildmidi=disabled -Dsidplay=disabled -Dshine=disabled -Ddocumentation=true -Daudiofile=enabled -Djack=$(vopt_if jack enabled disabled) -Dlame=$(vopt_if lame enabled disabled) -Dao=$(vopt_if ao enabled disabled) -Dmpcdec=$(vopt_if mpcdec enabled disabled) -Dsndio=$(vopt_if sndio enabled disabled) -Dpulse=$(vopt_if pulseaudio enabled disabled) -Dwavpack=$(vopt_if wavpack enabled disabled) -Dcdio_paranoia=$(vopt_if cdio enabled disabled) -Dopenal=$(vopt_if openal enabled disabled)" hostmakedepends="pkg-config" makedepends="avahi-glib-libs-devel boost-devel faad2-devel ffmpeg-devel libcurl-devel libid3tag-devel libmad-devel libmikmod-devel libmms-devel libmodplug-devel libmpdclient-devel libnfs-devel libsamplerate-devel libsoup-devel libupnp1.8-devel mpg123-devel opus-devel yajl-devel zziplib-devel chromaprint-devel libsoxr-devel audiofile-devel twolame-devel $(vopt_if cdio 'libcdio-paranoia-devel') $(vopt_if jack 'jack-devel') $(vopt_if lame 'lame-devel') $(vopt_if libao 'libao-devel') $(vopt_if mpcdec 'libmpcdec-devel') $(vopt_if pulseaudio 'pulseaudio-devel') $(vopt_if sndio 'sndio-devel') $(vopt_if wavpack 'wavpack-devel') $(vopt_if soxr 'libsoxr-devel') $(vopt_if openal 'libopenal-devel')" conf_files="/etc/mpd.conf" system_accounts="mpd" mpd_homedir="/var/lib/mpd" short_desc="Flexible, powerful, server-side application for playing music" maintainer="Juan RP " license="GPL-2.0-or-later" homepage="https://www.musicpd.org/" distfiles="https://www.musicpd.org/download/mpd/${version%.*}/mpd-${version}.tar.xz" checksum=c6ff74ff521aa2b390bdeac299954da21b9d0a66216abdd500ae590d97ab514a # Package build options build_options="jack lame mpcdec pulseaudio libao wavpack sndio cdio openal" desc_option_cdio="Enable libcdio_paranoia input plugin" desc_option_openal="Enable OpenAL output plugin" build_options_default="pulseaudio libao sndio cdio" pre_configure() { # We only want manpages sed -n -e '1p' -i doc/meson.build } post_install() { vconf doc/mpdconf.example mpd.conf vsconf doc/mpdconf.example sed \ -e '/^#playlist_directory/c playlist_directory "/var/lib/mpd/playlists"' \ -e '/^#db_file/c db_file "/var/lib/mpd/mpd.db"' \ -e '/^#pid_file/c pid_file "/run/mpd/mpd.pid"' \ -e '/^#state_file/c state_file "/var/lib/mpd/mpdstate"' \ -e '/^#user/c user "mpd"' \ -i ${DESTDIR}/etc/mpd.conf vsv mpd }