I managed to build it. For the reference, currently it is needed to edit PKGBUILD so the configure command reads:
./configure --enable-core-inline --enable-debug --disable-avcodec --prefix=/usr --enable-sdl2
(changed --enable-avcodec
into --disable-avcodec
).
Pinned Comments