moc-development
The package downloads the main source from the project's official host (daper.net, which is the upstream domain for MOC) and a plugin from GitHub; both are legitimate sources for building the software, and no untrusted or executable payloads are involved.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads the main source from the project's official host (daper.net, which is the upstream domain for MOC) and a plugin from GitHub; both are legitimate sources for building the software, and no untrusted or executable payloads are involved.
1 higher static finding superseded - not the current verdict (shown for transparency)
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:23
source=("https://ftp.daper.net/pub/soft/${_pkgname}/unstable/${_pkgname}-${_pkgver}.tar.xz"
PKGBUILD
1 offending line(s) highlighted# Maintainer: PiterDeVries <https://aur.archlinux.org/account/PiterDeVries>
pkgname='moc-development'
_pkgname='moc'
pkgver='2.6_alpha3'
_pkgver='2.6-alpha3'
pkgrel=5
pkgdesc='Music On Console is an ncurses-based console audio player - latest version with patches that supports PulseAudio and FluidSynth, compiled against current FFmpeg'
arch=('i686' 'x86_64' 'aarch64')
url="https://moc.daper.net/"
license=('GPL-2.0-or-later')
depends=('popt' 'libmad' 'libid3tag' 'jack' 'curl' 'libltdl' 'file' 'sndio' 'fluidsynth' 'libsmf')
makedepends=('speex' 'ffmpeg>=5.1' 'taglib' 'libmpcdec' 'wavpack' 'libmodplug' 'faad2')
optdepends=('speex: for using the speex plugin'
'ffmpeg>=5.1: for using the ffmpeg plugin'
'taglib: for using the musepack plugin'
'libmpcdec: for using the musepack plugin'
'wavpack: for using the wavpack plugin'
'faad2: for using the aac plugin'
'libmodplug: for using the modplug plugin')
provides=('moc')
conflicts=('moc' 'moc-stable-complete' 'moc-pulse' 'moc-git' 'moc-unstable' 'moc-fluidsynth-plugin')
source=("https://ftp.daper.net/pub/soft/${_pkgname}/unstable/${_pkgname}-${_pkgver}.tar.xz"
"moc-fluidsynth-plugin-0.6.6.tar.gz::https://github.com/joanbm/moc-fluidsynth-plugin/archive/refs/tags/v0.0.6.tar.gz"
"pulse.c"
"pulse.h"
"ffmpeg.c.patch"
"ffmpeg.m4")
sha256sums=('a27b8888984cf8dbcd758584961529ddf48c237caa9b40b67423fbfbb88323b1'
'5585d541c6bc92103a71a044d096f16d872ac260a078d7d91b005f60939aefb4'
'84cbc24e9c81f0ea699438bdb8827f1519c107fb963a8b59baf50e3a21f70252'
'93e89cc4f4025f30a9b1b0c4c2603ca35950cf237dc0fc15f09759438232bc33'
'a62b34e6aad3d44c8c17574a7355971c6a24f18de0083753348c657bce718e66'
'3657440c6c3ec48024ec7a3ef6a4d5e6cd08043a554acefba78ee7930c4a7927')
install="moc-development.install"
prepare() {
cd "${_pkgname}-${_pkgver}"
### The rest of the build() section will be divided into several subsections:
### necessary patches(1), PulseAudio support(2), FluidSynth plugin(3), patches for FFmpeg plugin compatibility with
### FFmpeg versions>4.4 (4) and updating the configuration files (5).
### Only steps 1 and 5 are necessary. If you don't want to do step (4), you will also need to specify correct ffmpeg version
### among the dependencies above (ffmpeg 4.4) and ensure that pkg-config uses this older FFmpeg version in the build() phase
## 1. Fix the compilation (fix all current errors):
# fixing an error in the file: 'tags_cache.c'
sed -i '129 s/db_strerror/bdb_strerror/' "${srcdir}/${_pkgname}-${_pkgver}/tags_cache.c"
# add support for https in the file: 'files.c'
sed -i '87a\ || !strncasecmp (str, "https://", sizeof ("https://") - 1)' "${srcdir}/${_pkgname}-${_pkgver}/files.c"
# fix warning about the file 'configure.in' (should be named 'configue.ac'):
mv "${srcdir}/${_pkgname}-${_pkgver}/configure.in" "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
## 2. Add the PulseAudio support:
# (Note: PulseAudio support based on the AUR/moc-pulse package)
# copy files 'pulse.c' and 'pulse.h' into the main directory:
cp ../pulse.c "${srcdir}/${_pkgname}-${_pkgver}/"
cp ../pulse.h "${srcdir}/${_pkgname}-${_pkgver}/"
# include the 'pulse.h' header into the file: 'audio.c'
sed -i '34a\#ifdef HAVE_PULSE' "${srcdir}/${_pkgname}-${_pkgver}/audio.c"
sed -i '35a\# include "pulse.h"' "${srcdir}/${_pkgname}-${_pkgver}/audio.c"
sed -i '36a\#endif"' "${srcdir}/${_pkgname}-${_pkgver}/audio.c"
# add "PulseAudio" as an option in the main configuration file - modify the file: 'options.c'
sed -i '578 s/CHECK_DISCRETE(5), "SNDIO", "Jack", "ALSA", "OSS", "null");/CHECK_DISCRETE(5), "SNDIO", "PulseAudio", "Jack", "ALSA", "OSS", "null");/' \
"${srcdir}/${_pkgname}-${_pkgver}/options.c"
sed -i '581 s/CHECK_DISCRETE(5), "SNDIO", "Jack", "ALSA", "OSS", "null");/CHECK_DISCRETE(5), "SNDIO", "PulseAudio", "Jack", "ALSA", "OSS", "null");/' \
"${srcdir}/${_pkgname}-${_pkgver}/options.c"
# finally, modify the main configuration file to add another option - file: 'configure.ac'
sed -i '159a\if test "x$with_pulse" != "xno"' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
sed -i '160a\then' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
sed -i '161a\ PKG_CHECK_MODULES(PULSE, [libpulse],' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
sed -i '162a\ [SOUND_DRIVERS="$SOUND_DRIVERS PULSE"' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
sed -i '163a\ EXTRA_OBJS="$EXTRA_OBJS pulse.o"' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
sed -i '164a\ AC_DEFINE([HAVE_PULSE], 1, [Define if you have PulseAudio.])' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
sed -i '165a\ EXTRA_LIBS="$EXTRA_LIBS $PULSE_LIBS"' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
sed -i '166a\ CFLAGS="$CFLAGS $PULSE_CFLAGS"],' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
sed -i '167a\ [true])' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
sed -i '168a\fi' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
sed -i '169a\' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
# last tiny detail: add "PULSEAUDIO" into the "SoundDriver" section in the example config file 'config.example.in'
sed -i '137 s/ALSA, JACK,/ALSA, JACK, PULSEAUDIO,/' "${srcdir}/${_pkgname}-${_pkgver}/config.example.in"
## 3. Add the FluidSynth support (made by Joan Bruguera Micó)
# Note: for some reason, it can't be included directly (can only be compiled separately as a shared library)
# ...probably because the moc-fulidsynth-plugin adds specific steps for compiling the libfluidsynth_decoder.so (as a standalone plugin)
# - that makes some of the following steps kind of redundant
# (will needs to compile the libfluidsynth_decoder.so directly later - see the build() and package() sections)
# copy the 'fluidsynth' decoder plugin from the moc-fluidsynth-plugin project:
cp -r ../moc-fluidsynth-plugin-0.0.6/moc/decoder_plugins/fluidsynth "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins"
# add the 'fluidsynth' right after 'timidity' in the decoder list - the file: 'decoders.m4'
sed -i '26a\m4_include(decoder_plugins/fluidsynth/fluidsynth.m4)' "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/decoders.m4"
# ... and to the file: 'decoder_plugins/Makefile.am'
sed -i '38a\if BUILD_fluidsynth' "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/Makefile.am"
sed -i '39a\ SUBDIRS += fluidsynth' "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/Makefile.am"
sed -i '40a\endif' "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/Makefile.am"
sed -i '41a\' "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/Makefile.am"
# also add 'fluidsynth' to the file: 'tools/md5check.sh'
sed -i '244 s/timidity/timidity|fluidsynth/' "${srcdir}/${_pkgname}-${_pkgver}/tools/md5check.sh"
# and list it in the main makefile: 'Makefile.in'
sed -i '69a\ $(top_srcdir)/decoder_plugins/fluidsynth/fluidsynth.m4 \' "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/Makefile.in"
# add notion about the FluidSynth support to the default example config file: 'config.example.in'
sed -i '639a\# Self-describing FluidSynth audio characteristic options.' "${srcdir}/${_pkgname}-${_pkgver}/config.example.in"
sed -i '640a\#FluidSynth_SoundFont = /usr/share/soundfonts/default.sf2' "${srcdir}/${_pkgname}-${_pkgver}/config.example.in"
sed -i '641a\#FluidSynth_Rate = 44100 # Between 8000 and 96000' "${srcdir}/${_pkgname}-${_pkgver}/config.example.in"
sed -i '642a\' "${srcdir}/${_pkgname}-${_pkgver}/config.example.in"
# and finally: give credit to the author of the moc-fluidsynth-plugin - add him to the file: 'THANKS'
sed -i '16a\Joan Bruguera:' "${srcdir}/${_pkgname}-${_pkgver}/THANKS"
sed -i '17a\ * Added FluidSynth decoder for MIDI.' "${srcdir}/${_pkgname}-${_pkgver}/THANKS"
sed -i '18a\' "${srcdir}/${_pkgname}-${_pkgver}/THANKS"
## 4. Patch the FFmpeg decoder plugin so that its compatible with current version of FFmpeg:
# apply patch to the file 'decoder_plugins/ffmpeg/ffmpeg.c' - this is the core change,
# as it fixes the breaking API changes that happened between FFmpeg 4.4->5.1
patch < ../ffmpeg.c.patch "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/ffmpeg/ffmpeg.c"
# there are now several redundant probes in the makefile 'decoder_plugins/ffmpeg/ffmpeg.m4' (lines 47-53)
# but there is a bigger problem too - we will need to ensure that MOC compiles against FFmpeg version>=5.1
# (API-wise, this means libavcodec 59.24.100) - this essentially means rewrite of the whole file,
# so change the file 'decoder_plugins/ffmpeg/ffmpeg.c' for the new rewritten one:
rm "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/ffmpeg/ffmpeg.m4"
cp ../ffmpeg.m4 "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/ffmpeg/"
## 5. final step - reconfigure the configuration system:
autoreconf -i -f
}
build() {
cd "${_pkgname}-${_pkgver}"
./configure --prefix=/usr \
--without-rcc \
--with-pulse \
--with-oss \
--with-alsa \
--with-jack \
--with-aac \
--with-mp3 \
--with-musepack \
--with-vorbis \
--with-flac \
--with-wavpack \
--with-sndfile \
--with-modplug \
--with-ffmpeg \
--with-speex \
--with-samplerate \
--with-curl \
--with-fluidsynth \
--disable-cache \
--disable-debug
make
## Since the FluidSynth plugin can't be included directly (requires specific additional make parameters),
## we will now create a new Makefile and use it to build the file libfluidsynth_decoder.so
## Note that as far as packaging goes, this is kind of a weird hack:
# create the new Makefile in the "${srcdir}":
cd "${srcdir}"
touch "Makefile"
# fill the new Makefile - based on the content of Makefile from the moc-fluidsynth-plugin:
echo 'CC := gcc' >> "${srcdir}/Makefile"
echo 'SMF_FLAGS = $(shell pkg-config --exists smf && pkg-config --cflags --libs smf && echo "-DHAVE_SMF")' >> "${srcdir}/Makefile"
echo 'libfluidsynth_decoder.so: moc/decoder_plugins/fluidsynth/fluidsynth.c' >> "${srcdir}/Makefile"
echo ' $(CC) -Wall -Wextra -fPIC -DSTANDALONE -Imoc -shared moc/decoder_plugins/fluidsynth/fluidsynth.c \' >> "${srcdir}/Makefile"
echo ' $(shell pkg-config --cflags --libs fluidsynth) $(SMF_FLAGS) -o libfluidsynth_decoder.so' >> "${srcdir}/Makefile"
# create a symbolic link called 'moc' in "${srcdir}" - this mirrors the directory structure from the moc-fluidsynth plugin:
ln -s "${_pkgname}-${_pkgver}" "${srcdir}/${_pkgname}"
# and of course make the libfluidsynth_decoder.so library itself:
make libfluidsynth_decoder.so
}
package() {
cd "${_pkgname}-${_pkgver}"
make DESTDIR="${pkgdir}" install
# now all that remains to do is to replace the libfluidsynth_decoder.so with the one from "${srcdir}":
rm "${pkgdir}/usr/lib/moc/decoder_plugins/libfluidsynth_decoder.so"
cp "${srcdir}/libfluidsynth_decoder.so" "${pkgdir}/usr/lib/moc/decoder_plugins/"
}
# vim: ts=2 sw=2
Changes since previous scan
--- PKGBUILD @ 2026-10-06 00:13+++ PKGBUILD @ 2026-10-18 00:06@@ -4,9 +4,9 @@ _pkgname='moc' pkgver='2.6_alpha3' _pkgver='2.6-alpha3'-pkgrel=4+pkgrel=5 pkgdesc='Music On Console is an ncurses-based console audio player - latest version with patches that supports PulseAudio and FluidSynth, compiled against current FFmpeg'-arch=('x86_64')+arch=('i686' 'x86_64' 'aarch64') url="https://moc.daper.net/" license=('GPL-2.0-or-later') depends=('popt' 'libmad' 'libid3tag' 'jack' 'curl' 'libltdl' 'file' 'sndio' 'fluidsynth' 'libsmf')@@ -46,13 +46,13 @@ ## 1. Fix the compilation (fix all current errors): # fixing an error in the file: 'tags_cache.c'- sed -i '129 s/db_strerror/bdb_strerror/' "$srcdir/${_pkgname}-${_pkgver}/tags_cache.c"+ sed -i '129 s/db_strerror/bdb_strerror/' "${srcdir}/${_pkgname}-${_pkgver}/tags_cache.c" # add support for https in the file: 'files.c'- sed -i '87a\ || !strncasecmp (str, "https://", sizeof ("https://") - 1)' "$srcdir/${_pkgname}-${_pkgver}/files.c"+ sed -i '87a\ || !strncasecmp (str, "https://", sizeof ("https://") - 1)' "${srcdir}/${_pkgname}-${_pkgver}/files.c" # fix warning about the file 'configure.in' (should be named 'configue.ac'):- mv "$srcdir/${_pkgname}-${_pkgver}/configure.in" "$srcdir/${_pkgname}-${_pkgver}/configure.ac"+ mv "${srcdir}/${_pkgname}-${_pkgver}/configure.in" "${srcdir}/${_pkgname}-${_pkgver}/configure.ac" @@ -60,35 +60,35 @@ # (Note: PulseAudio support based on the AUR/moc-pulse package) # copy files 'pulse.c' and 'pulse.h' into the main directory:- cp ../pulse.c "$srcdir/${_pkgname}-${_pkgver}/"- cp ../pulse.h "$srcdir/${_pkgname}-${_pkgver}/"+ cp ../pulse.c "${srcdir}/${_pkgname}-${_pkgver}/"+ cp ../pulse.h "${srcdir}/${_pkgname}-${_pkgver}/" # include the 'pulse.h' header into the file: 'audio.c'- sed -i '34a\#ifdef HAVE_PULSE' "$srcdir/${_pkgname}-${_pkgver}/audio.c"- sed -i '35a\# include "pulse.h"' "$srcdir/${_pkgname}-${_pkgver}/audio.c"- sed -i '36a\#endif"' "$srcdir/${_pkgname}-${_pkgver}/audio.c"+ sed -i '34a\#ifdef HAVE_PULSE' "${srcdir}/${_pkgname}-${_pkgver}/audio.c"+ sed -i '35a\# include "pulse.h"' "${srcdir}/${_pkgname}-${_pkgver}/audio.c"+ sed -i '36a\#endif"' "${srcdir}/${_pkgname}-${_pkgver}/audio.c" # add "PulseAudio" as an option in the main configuration file - modify the file: 'options.c' sed -i '578 s/CHECK_DISCRETE(5), "SNDIO", "Jack", "ALSA", "OSS", "null");/CHECK_DISCRETE(5), "SNDIO", "PulseAudio", "Jack", "ALSA", "OSS", "null");/' \- "$srcdir/${_pkgname}-${_pkgver}/options.c"+ "${srcdir}/${_pkgname}-${_pkgver}/options.c" sed -i '581 s/CHECK_DISCRETE(5), "SNDIO", "Jack", "ALSA", "OSS", "null");/CHECK_DISCRETE(5), "SNDIO", "PulseAudio", "Jack", "ALSA", "OSS", "null");/' \- "$srcdir/${_pkgname}-${_pkgver}/options.c"+ "${srcdir}/${_pkgname}-${_pkgver}/options.c" # finally, modify the main configuration file to add another option - file: 'configure.ac'- sed -i '159a\if test "x$with_pulse" != "xno"' "$srcdir/${_pkgname}-${_pkgver}/configure.ac"- sed -i '160a\then' "$srcdir/${_pkgname}-${_pkgver}/configure.ac"- sed -i '161a\ PKG_CHECK_MODULES(PULSE, [libpulse],' "$srcdir/${_pkgname}-${_pkgver}/configure.ac"- sed -i '162a\ [SOUND_DRIVERS="$SOUND_DRIVERS PULSE"' "$srcdir/${_pkgname}-${_pkgver}/configure.ac"- sed -i '163a\ EXTRA_OBJS="$EXTRA_OBJS pulse.o"' "$srcdir/${_pkgname}-${_pkgver}/configure.ac"- sed -i '164a\ AC_DEFINE([HAVE_PULSE], 1, [Define if you have PulseAudio.])' "$srcdir/${_pkgname}-${_pkgver}/configure.ac"- sed -i '165a\ EXTRA_LIBS="$EXTRA_LIBS $PULSE_LIBS"' "$srcdir/${_pkgname}-${_pkgver}/configure.ac"- sed -i '166a\ CFLAGS="$CFLAGS $PULSE_CFLAGS"],' "$srcdir/${_pkgname}-${_pkgver}/configure.ac"- sed -i '167a\ [true])' "$srcdir/${_pkgname}-${_pkgver}/configure.ac"- sed -i '168a\fi' "$srcdir/${_pkgname}-${_pkgver}/configure.ac"- sed -i '169a\' "$srcdir/${_pkgname}-${_pkgver}/configure.ac"+ sed -i '159a\if test "x$with_pulse" != "xno"' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"+ sed -i '160a\then' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"+ sed -i '161a\ PKG_CHECK_MODULES(PULSE, [libpulse],' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"+ sed -i '162a\ [SOUND_DRIVERS="$SOUND_DRIVERS PULSE"' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"+ sed -i '163a\ EXTRA_OBJS="$EXTRA_OBJS pulse.o"' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"+ sed -i '164a\ AC_DEFINE([HAVE_PULSE], 1, [Define if you have PulseAudio.])' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"+ sed -i '165a\ EXTRA_LIBS="$EXTRA_LIBS $PULSE_LIBS"' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"+ sed -i '166a\ CFLAGS="$CFLAGS $PULSE_CFLAGS"],' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"+ sed -i '167a\ [true])' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"+ sed -i '168a\fi' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"+ sed -i '169a\' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac" # last tiny detail: add "PULSEAUDIO" into the "SoundDriver" section in the example config file 'config.example.in'- sed -i '137 s/ALSA, JACK,/ALSA, JACK, PULSEAUDIO,/' "$srcdir/${_pkgname}-${_pkgver}/config.example.in"+ sed -i '137 s/ALSA, JACK,/ALSA, JACK, PULSEAUDIO,/' "${srcdir}/${_pkgname}-${_pkgver}/config.example.in" @@ -99,33 +99,33 @@ # (will needs to compile the libfluidsynth_decoder.so directly later - see the build() and package() sections) # copy the 'fluidsynth' decoder plugin from the moc-fluidsynth-plugin project:- cp -r ../moc-fluidsynth-plugin-0.0.6/moc/decoder_plugins/fluidsynth "$srcdir/${_pkgname}-${_pkgver}/decoder_plugins"+ cp -r ../moc-fluidsynth-plugin-0.0.6/moc/decoder_plugins/fluidsynth "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins" # add the 'fluidsynth' right after 'timidity' in the decoder list - the file: 'decoders.m4'- sed -i '26a\m4_include(decoder_plugins/fluidsynth/fluidsynth.m4)' "$srcdir/${_pkgname}-${_pkgver}/decoder_plugins/decoders.m4"+ sed -i '26a\m4_include(decoder_plugins/fluidsynth/fluidsynth.m4)' "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/decoders.m4" # ... and to the file: 'decoder_plugins/Makefile.am'- sed -i '38a\if BUILD_fluidsynth' "$srcdir/${_pkgname}-${_pkgver}/decoder_plugins/Makefile.am"- sed -i '39a\ SUBDIRS += fluidsynth' "$srcdir/${_pkgname}-${_pkgver}/decoder_plugins/Makefile.am"- sed -i '40a\endif' "$srcdir/${_pkgname}-${_pkgver}/decoder_plugins/Makefile.am"- sed -i '41a\' "$srcdir/${_pkgname}-${_pkgver}/decoder_plugins/Makefile.am"+ sed -i '38a\if BUILD_fluidsynth' "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/Makefile.am"+ sed -i '39a\ SUBDIRS += fluidsynth' "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/Makefile.am"+ sed -i '40a\endif' "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/Makefile.am"+ sed -i '41a\' "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/Makefile.am" # also add 'fluidsynth' to the file: 'tools/md5check.sh'- sed -i '244 s/timidity/timidity|fluidsynth/' "$srcdir/${_pkgname}-${_pkgver}/tools/md5check.sh"+ sed -i '244 s/timidity/timidity|fluidsynth/' "${srcdir}/${_pkgname}-${_pkgver}/tools/md5check.sh" # and list it in the main makefile: 'Makefile.in'- sed -i '69a\ $(top_srcdir)/decoder_plugins/fluidsynth/fluidsynth.m4 \' "$srcdir/${_pkgname}-${_pkgver}/decoder_plugins/Makefile.in"+ sed -i '69a\ $(top_srcdir)/decoder_plugins/fluidsynth/fluidsynth.m4 \' "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/Makefile.in" # add notion about the FluidSynth support to the default example config file: 'config.example.in'- sed -i '639a\# Self-describing FluidSynth audio characteristic options.' "$srcdir/${_pkgname}-${_pkgver}/config.example.in"- sed -i '640a\#FluidSynth_SoundFont = /usr/share/soundfonts/default.sf2' "$srcdir/${_pkgname}-${_pkgver}/config.example.in"- sed -i '641a\#FluidSynth_Rate = 44100 # Between 8000 and 96000' "$srcdir/${_pkgname}-${_pkgver}/config.example.in"- sed -i '642a\' "$srcdir/${_pkgname}-${_pkgver}/config.example.in"+ sed -i '639a\# Self-describing FluidSynth audio characteristic options.' "${srcdir}/${_pkgname}-${_pkgver}/config.example.in"+ sed -i '640a\#FluidSynth_SoundFont = /usr/share/soundfonts/default.sf2' "${srcdir}/${_pkgname}-${_pkgver}/config.example.in"+ sed -i '641a\#FluidSynth_Rate = 44100 # Between 8000 and 96000' "${srcdir}/${_pkgname}-${_pkgver}/config.example.in"+ sed -i '642a\' "${srcdir}/${_pkgname}-${_pkgver}/config.example.in" # and finally: give credit to the author of the moc-fluidsynth-plugin - add him to the file: 'THANKS'- sed -i '16a\Joan Bruguera:' "$srcdir/${_pkgname}-${_pkgver}/THANKS"- sed -i '17a\ * Added FluidSynth decoder for MIDI.' "$srcdir/${_pkgname}-${_pkgver}/THANKS"- sed -i '18a\' "$srcdir/${_pkgname}-${_pkgver}/THANKS"+ sed -i '16a\Joan Bruguera:' "${srcdir}/${_pkgname}-${_pkgver}/THANKS"+ sed -i '17a\ * Added FluidSynth decoder for MIDI.' "${srcdir}/${_pkgname}-${_pkgver}/THANKS"+ sed -i '18a\' "${srcdir}/${_pkgname}-${_pkgver}/THANKS" @@ -133,14 +133,14 @@ # apply patch to the file 'decoder_plugins/ffmpeg/ffmpeg.c' - this is the core change, # as it fixes the breaking API changes that happened between FFmpeg 4.4->5.1- patch < ../ffmpeg.c.patch "$srcdir/${_pkgname}-${_pkgver}/decoder_plugins/ffmpeg/ffmpeg.c"+ patch < ../ffmpeg.c.patch "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/ffmpeg/ffmpeg.c" # there are now several redundant probes in the makefile 'decoder_plugins/ffmpeg/ffmpeg.m4' (lines 47-53) # but there is a bigger problem too - we will need to ensure that MOC compiles against FFmpeg version>=5.1 # (API-wise, this means libavcodec 59.24.100) - this essentially means rewrite of the whole file, # so change the file 'decoder_plugins/ffmpeg/ffmpeg.c' for the new rewritten one:- rm "$srcdir/${_pkgname}-${_pkgver}/decoder_plugins/ffmpeg/ffmpeg.m4"- cp ../ffmpeg.m4 "$srcdir/${_pkgname}-${_pkgver}/decoder_plugins/ffmpeg/"+ rm "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/ffmpeg/ffmpeg.m4"+ cp ../ffmpeg.m4 "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/ffmpeg/" @@ -178,18 +178,18 @@ ## we will now create a new Makefile and use it to build the file libfluidsynth_decoder.so ## Note that as far as packaging goes, this is kind of a weird hack: - # create the new Makefile in the "$srcdir":+ # create the new Makefile in the "${srcdir}": cd "${srcdir}" touch "Makefile" # fill the new Makefile - based on the content of Makefile from the moc-fluidsynth-plugin:- echo 'CC := gcc' >> "$srcdir/Makefile"- echo 'SMF_FLAGS = $(shell pkg-config --exists smf && pkg-config --cflags --libs smf && echo "-DHAVE_SMF")' >> "$srcdir/Makefile"- echo 'libfluidsynth_decoder.so: moc/decoder_plugins/fluidsynth/fluidsynth.c' >> "$srcdir/Makefile"- echo ' $(CC) -Wall -Wextra -fPIC -DSTANDALONE -Imoc -shared moc/decoder_plugins/fluidsynth/fluidsynth.c \' >> "$srcdir/Makefile"- echo ' $(shell pkg-config --cflags --libs fluidsynth) $(SMF_FLAGS) -o libfluidsynth_decoder.so' >> "$srcdir/Makefile"-- # create a symbolic link called 'moc' in "$srcdir" - this mirrors the directory structure from the moc-fluidsynth plugin:+ echo 'CC := gcc' >> "${srcdir}/Makefile"+ echo 'SMF_FLAGS = $(shell pkg-config --exists smf && pkg-config --cflags --libs smf && echo "-DHAVE_SMF")' >> "${srcdir}/Makefile"+ echo 'libfluidsynth_decoder.so: moc/decoder_plugins/fluidsynth/fluidsynth.c' >> "${srcdir}/Makefile"+ echo ' $(CC) -Wall -Wextra -fPIC -DSTANDALONE -Imoc -shared moc/decoder_plugins/fluidsynth/fluidsynth.c \' >> "${srcdir}/Makefile"+ echo ' $(shell pkg-config --cflags --libs fluidsynth) $(SMF_FLAGS) -o libfluidsynth_decoder.so' >> "${srcdir}/Makefile"++ # create a symbolic link called 'moc' in "${srcdir}" - this mirrors the directory structure from the moc-fluidsynth plugin: ln -s "${_pkgname}-${_pkgver}" "${srcdir}/${_pkgname}" # and of course make the libfluidsynth_decoder.so library itself:@@ -197,10 +197,10 @@ } package() {- cd ${_pkgname}-${_pkgver}+ cd "${_pkgname}-${_pkgver}" make DESTDIR="${pkgdir}" install - # now all that remains to do is to replace the libfluidsynth_decoder.so with the one from "$srcdir":+ # now all that remains to do is to replace the libfluidsynth_decoder.so with the one from "${srcdir}": rm "${pkgdir}/usr/lib/moc/decoder_plugins/libfluidsynth_decoder.so" cp "${srcdir}/libfluidsynth_decoder.so" "${pkgdir}/usr/lib/moc/decoder_plugins/" }Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |
| 2026-10-13 00:23:45 | Low | 2 |
| 2026-10-12 00:18:51 | Low | 2 |
| 2026-10-11 00:26:05 | Low | 2 |
| 2026-10-10 00:11:52 | Low | 2 |
| 2026-10-09 00:05:33 | Low | 2 |
| 2026-10-08 00:28:03 | Low | 2 |
| 2026-10-07 00:21:34 | Low | 2 |
| 2026-10-06 08:02:16 | Medium | 1 |
| 2026-10-06 00:13:36 | Low | 2 |
| 2026-10-05 00:08:03 | Low | 2 |
| 2026-10-04 00:18:08 | Low | 2 |
| 2026-10-03 00:23:04 | Low | 2 |
| 2026-10-02 00:00:32 | Low | 2 |
| 2026-10-01 00:02:06 | Low | 2 |
| 2026-09-30 00:20:07 | Low | 2 |