moc-development

LOW
maintainer PiterDeVries 0 votes scanned 2026-10-18 00:06:55.117981
View on AUR
Why flagged

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

Low AI review downgraded a static finding 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)
Medium source=() URL on a non-standard host 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
1# Maintainer: PiterDeVries <https://aur.archlinux.org/account/PiterDeVries>
2
3pkgname='moc-development'
4_pkgname='moc'
5pkgver='2.6_alpha3'
6_pkgver='2.6-alpha3'
7pkgrel=5
8pkgdesc='Music On Console is an ncurses-based console audio player - latest version with patches that supports PulseAudio and FluidSynth, compiled against current FFmpeg'
9arch=('i686' 'x86_64' 'aarch64')
10url="https://moc.daper.net/"
11license=('GPL-2.0-or-later')
12depends=('popt' 'libmad' 'libid3tag' 'jack' 'curl' 'libltdl' 'file' 'sndio' 'fluidsynth' 'libsmf')
13makedepends=('speex' 'ffmpeg>=5.1' 'taglib' 'libmpcdec' 'wavpack' 'libmodplug' 'faad2')
14optdepends=('speex: for using the speex plugin'
15 'ffmpeg>=5.1: for using the ffmpeg plugin'
16 'taglib: for using the musepack plugin'
17 'libmpcdec: for using the musepack plugin'
18 'wavpack: for using the wavpack plugin'
19 'faad2: for using the aac plugin'
20 'libmodplug: for using the modplug plugin')
21provides=('moc')
22conflicts=('moc' 'moc-stable-complete' 'moc-pulse' 'moc-git' 'moc-unstable' 'moc-fluidsynth-plugin')
23source=("https://ftp.daper.net/pub/soft/${_pkgname}/unstable/${_pkgname}-${_pkgver}.tar.xz"
24 "moc-fluidsynth-plugin-0.6.6.tar.gz::https://github.com/joanbm/moc-fluidsynth-plugin/archive/refs/tags/v0.0.6.tar.gz"
25 "pulse.c"
26 "pulse.h"
27 "ffmpeg.c.patch"
28 "ffmpeg.m4")
29sha256sums=('a27b8888984cf8dbcd758584961529ddf48c237caa9b40b67423fbfbb88323b1'
30 '5585d541c6bc92103a71a044d096f16d872ac260a078d7d91b005f60939aefb4'
31 '84cbc24e9c81f0ea699438bdb8827f1519c107fb963a8b59baf50e3a21f70252'
32 '93e89cc4f4025f30a9b1b0c4c2603ca35950cf237dc0fc15f09759438232bc33'
33 'a62b34e6aad3d44c8c17574a7355971c6a24f18de0083753348c657bce718e66'
34 '3657440c6c3ec48024ec7a3ef6a4d5e6cd08043a554acefba78ee7930c4a7927')
35install="moc-development.install"
36
37prepare() {
38 cd "${_pkgname}-${_pkgver}"
39
40 ### The rest of the build() section will be divided into several subsections:
41 ### necessary patches(1), PulseAudio support(2), FluidSynth plugin(3), patches for FFmpeg plugin compatibility with
42 ### FFmpeg versions>4.4 (4) and updating the configuration files (5).
43 ### 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
44 ### among the dependencies above (ffmpeg 4.4) and ensure that pkg-config uses this older FFmpeg version in the build() phase
45
46 ## 1. Fix the compilation (fix all current errors):
47
48 # fixing an error in the file: 'tags_cache.c'
49 sed -i '129 s/db_strerror/bdb_strerror/' "${srcdir}/${_pkgname}-${_pkgver}/tags_cache.c"
50
51 # add support for https in the file: 'files.c'
52 sed -i '87a\ || !strncasecmp (str, "https://", sizeof ("https://") - 1)' "${srcdir}/${_pkgname}-${_pkgver}/files.c"
53
54 # fix warning about the file 'configure.in' (should be named 'configue.ac'):
55 mv "${srcdir}/${_pkgname}-${_pkgver}/configure.in" "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
56
57
58
59 ## 2. Add the PulseAudio support:
60 # (Note: PulseAudio support based on the AUR/moc-pulse package)
61
62 # copy files 'pulse.c' and 'pulse.h' into the main directory:
63 cp ../pulse.c "${srcdir}/${_pkgname}-${_pkgver}/"
64 cp ../pulse.h "${srcdir}/${_pkgname}-${_pkgver}/"
65
66 # include the 'pulse.h' header into the file: 'audio.c'
67 sed -i '34a\#ifdef HAVE_PULSE' "${srcdir}/${_pkgname}-${_pkgver}/audio.c"
68 sed -i '35a\# include "pulse.h"' "${srcdir}/${_pkgname}-${_pkgver}/audio.c"
69 sed -i '36a\#endif"' "${srcdir}/${_pkgname}-${_pkgver}/audio.c"
70
71 # add "PulseAudio" as an option in the main configuration file - modify the file: 'options.c'
72 sed -i '578 s/CHECK_DISCRETE(5), "SNDIO", "Jack", "ALSA", "OSS", "null");/CHECK_DISCRETE(5), "SNDIO", "PulseAudio", "Jack", "ALSA", "OSS", "null");/' \
73 "${srcdir}/${_pkgname}-${_pkgver}/options.c"
74 sed -i '581 s/CHECK_DISCRETE(5), "SNDIO", "Jack", "ALSA", "OSS", "null");/CHECK_DISCRETE(5), "SNDIO", "PulseAudio", "Jack", "ALSA", "OSS", "null");/' \
75 "${srcdir}/${_pkgname}-${_pkgver}/options.c"
76
77 # finally, modify the main configuration file to add another option - file: 'configure.ac'
78 sed -i '159a\if test "x$with_pulse" != "xno"' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
79 sed -i '160a\then' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
80 sed -i '161a\ PKG_CHECK_MODULES(PULSE, [libpulse],' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
81 sed -i '162a\ [SOUND_DRIVERS="$SOUND_DRIVERS PULSE"' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
82 sed -i '163a\ EXTRA_OBJS="$EXTRA_OBJS pulse.o"' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
83 sed -i '164a\ AC_DEFINE([HAVE_PULSE], 1, [Define if you have PulseAudio.])' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
84 sed -i '165a\ EXTRA_LIBS="$EXTRA_LIBS $PULSE_LIBS"' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
85 sed -i '166a\ CFLAGS="$CFLAGS $PULSE_CFLAGS"],' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
86 sed -i '167a\ [true])' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
87 sed -i '168a\fi' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
88 sed -i '169a\' "${srcdir}/${_pkgname}-${_pkgver}/configure.ac"
89
90 # last tiny detail: add "PULSEAUDIO" into the "SoundDriver" section in the example config file 'config.example.in'
91 sed -i '137 s/ALSA, JACK,/ALSA, JACK, PULSEAUDIO,/' "${srcdir}/${_pkgname}-${_pkgver}/config.example.in"
92
93
94
95 ## 3. Add the FluidSynth support (made by Joan Bruguera Micó)
96 # Note: for some reason, it can't be included directly (can only be compiled separately as a shared library)
97 # ...probably because the moc-fulidsynth-plugin adds specific steps for compiling the libfluidsynth_decoder.so (as a standalone plugin)
98 # - that makes some of the following steps kind of redundant
99 # (will needs to compile the libfluidsynth_decoder.so directly later - see the build() and package() sections)
100
101 # copy the 'fluidsynth' decoder plugin from the moc-fluidsynth-plugin project:
102 cp -r ../moc-fluidsynth-plugin-0.0.6/moc/decoder_plugins/fluidsynth "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins"
103
104 # add the 'fluidsynth' right after 'timidity' in the decoder list - the file: 'decoders.m4'
105 sed -i '26a\m4_include(decoder_plugins/fluidsynth/fluidsynth.m4)' "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/decoders.m4"
106
107 # ... and to the file: 'decoder_plugins/Makefile.am'
108 sed -i '38a\if BUILD_fluidsynth' "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/Makefile.am"
109 sed -i '39a\ SUBDIRS += fluidsynth' "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/Makefile.am"
110 sed -i '40a\endif' "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/Makefile.am"
111 sed -i '41a\' "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/Makefile.am"
112
113 # also add 'fluidsynth' to the file: 'tools/md5check.sh'
114 sed -i '244 s/timidity/timidity|fluidsynth/' "${srcdir}/${_pkgname}-${_pkgver}/tools/md5check.sh"
115
116 # and list it in the main makefile: 'Makefile.in'
117 sed -i '69a\ $(top_srcdir)/decoder_plugins/fluidsynth/fluidsynth.m4 \' "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/Makefile.in"
118
119 # add notion about the FluidSynth support to the default example config file: 'config.example.in'
120 sed -i '639a\# Self-describing FluidSynth audio characteristic options.' "${srcdir}/${_pkgname}-${_pkgver}/config.example.in"
121 sed -i '640a\#FluidSynth_SoundFont = /usr/share/soundfonts/default.sf2' "${srcdir}/${_pkgname}-${_pkgver}/config.example.in"
122 sed -i '641a\#FluidSynth_Rate = 44100 # Between 8000 and 96000' "${srcdir}/${_pkgname}-${_pkgver}/config.example.in"
123 sed -i '642a\' "${srcdir}/${_pkgname}-${_pkgver}/config.example.in"
124
125 # and finally: give credit to the author of the moc-fluidsynth-plugin - add him to the file: 'THANKS'
126 sed -i '16a\Joan Bruguera:' "${srcdir}/${_pkgname}-${_pkgver}/THANKS"
127 sed -i '17a\ * Added FluidSynth decoder for MIDI.' "${srcdir}/${_pkgname}-${_pkgver}/THANKS"
128 sed -i '18a\' "${srcdir}/${_pkgname}-${_pkgver}/THANKS"
129
130
131
132 ## 4. Patch the FFmpeg decoder plugin so that its compatible with current version of FFmpeg:
133
134 # apply patch to the file 'decoder_plugins/ffmpeg/ffmpeg.c' - this is the core change,
135 # as it fixes the breaking API changes that happened between FFmpeg 4.4->5.1
136 patch < ../ffmpeg.c.patch "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/ffmpeg/ffmpeg.c"
137
138 # there are now several redundant probes in the makefile 'decoder_plugins/ffmpeg/ffmpeg.m4' (lines 47-53)
139 # but there is a bigger problem too - we will need to ensure that MOC compiles against FFmpeg version>=5.1
140 # (API-wise, this means libavcodec 59.24.100) - this essentially means rewrite of the whole file,
141 # so change the file 'decoder_plugins/ffmpeg/ffmpeg.c' for the new rewritten one:
142 rm "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/ffmpeg/ffmpeg.m4"
143 cp ../ffmpeg.m4 "${srcdir}/${_pkgname}-${_pkgver}/decoder_plugins/ffmpeg/"
144
145
146
147 ## 5. final step - reconfigure the configuration system:
148 autoreconf -i -f
149}
150
151build() {
152 cd "${_pkgname}-${_pkgver}"
153
154 ./configure --prefix=/usr \
155 --without-rcc \
156 --with-pulse \
157 --with-oss \
158 --with-alsa \
159 --with-jack \
160 --with-aac \
161 --with-mp3 \
162 --with-musepack \
163 --with-vorbis \
164 --with-flac \
165 --with-wavpack \
166 --with-sndfile \
167 --with-modplug \
168 --with-ffmpeg \
169 --with-speex \
170 --with-samplerate \
171 --with-curl \
172 --with-fluidsynth \
173 --disable-cache \
174 --disable-debug
175 make
176
177 ## Since the FluidSynth plugin can't be included directly (requires specific additional make parameters),
178 ## we will now create a new Makefile and use it to build the file libfluidsynth_decoder.so
179 ## Note that as far as packaging goes, this is kind of a weird hack:
180
181 # create the new Makefile in the "${srcdir}":
182 cd "${srcdir}"
183 touch "Makefile"
184
185 # fill the new Makefile - based on the content of Makefile from the moc-fluidsynth-plugin:
186 echo 'CC := gcc' >> "${srcdir}/Makefile"
187 echo 'SMF_FLAGS = $(shell pkg-config --exists smf && pkg-config --cflags --libs smf && echo "-DHAVE_SMF")' >> "${srcdir}/Makefile"
188 echo 'libfluidsynth_decoder.so: moc/decoder_plugins/fluidsynth/fluidsynth.c' >> "${srcdir}/Makefile"
189 echo ' $(CC) -Wall -Wextra -fPIC -DSTANDALONE -Imoc -shared moc/decoder_plugins/fluidsynth/fluidsynth.c \' >> "${srcdir}/Makefile"
190 echo ' $(shell pkg-config --cflags --libs fluidsynth) $(SMF_FLAGS) -o libfluidsynth_decoder.so' >> "${srcdir}/Makefile"
191
192 # create a symbolic link called 'moc' in "${srcdir}" - this mirrors the directory structure from the moc-fluidsynth plugin:
193 ln -s "${_pkgname}-${_pkgver}" "${srcdir}/${_pkgname}"
194
195 # and of course make the libfluidsynth_decoder.so library itself:
196 make libfluidsynth_decoder.so
197}
198
199package() {
200 cd "${_pkgname}-${_pkgver}"
201 make DESTDIR="${pkgdir}" install
202
203 # now all that remains to do is to replace the libfluidsynth_decoder.so with the one from "${srcdir}":
204 rm "${pkgdir}/usr/lib/moc/decoder_plugins/libfluidsynth_decoder.so"
205 cp "${srcdir}/libfluidsynth_decoder.so" "${pkgdir}/usr/lib/moc/decoder_plugins/"
206}
207
208# vim: ts=2 sw=2
209

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)SeverityRules
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

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion