anchor.diff:      .. && \
     make -j$(nproc) install
   
  +FROM download AS libaribb24_download
  +# bump: libaribb24 /LIBARIBB24_VERSION=([\d.]+)/ https://github.com/nkoriyama/aribb24.git|*
  +# bump: libaribb24 after ./hashupdate Dockerfile LIBARIBB24 $LATEST
  +# bump: libaribb24 link "Release notes" https://github.com/nkoriyama/aribb24/releases/tag/$LATEST
  +ARG LIBARIBB24_VERSION=1.0.3
  +ARG LIBARIBB24_URL="https://github.com/nkoriyama/aribb24/archive/v$LIBARIBB24_VERSION.tar.gz"
  +ARG LIBARIBB24_SHA256=f61560738926e57f9173510389634d8c06cabedfa857db4b28fb7704707ff128
  +RUN \
  +  wget $WGET_OPTS -O libaribb24.tar.gz ${LIBARIBB24_URL} && \
  +  echo "$LIBARIBB24_SHA256  libaribb24.tar.gz" | sha256sum --status -c - && \
  +  mkdir libaribb24 && \
  +  tar xf libaribb24.tar.gz -C libaribb24 --strip-components=1
  +
  +FROM builder AS libaribb24
  +COPY --link --from=libaribb24_download /tmp/libaribb24/ /tmp/libaribb24/
  +RUN apk add --no-cache \
  +  libpng-dev
  +RUN \
  +  cd libaribb24 && \
  +  autoreconf -fiv && \
  +  ./configure --enable-static --disable-shared && \
  +  make -j$(nproc) && make install
  +
  +FROM download AS libass_download
   # bump: libass /LIBASS_VERSION=([\d.]+)/ https://github.com/libass/libass.git|*
   # bump: libass after ./hashupdate Dockerfile LIBASS $LATEST
   # bump: libass link "Release notes" https://github.com/libass/libass/releases/tag/$LATEST
  
positive.code: ARG FFMPEG_VERSION=5.1.2
  ARG FFMPEG_URL="https://ffmpeg.org/releases/ffmpeg-$FFMPEG_VERSION.tar.bz2"
  ARG FFMPEG_SHA256=39a0bcc8d98549f16c570624678246a6ac736c066cebdb409f9502e915b22f2b
  # sed changes --toolchain=hardened -pie to -static-pie
  # extra ldflags stack-size=2097152 is to increase default stack size from 128KB (musl default) to something
  # more similar to glibc (2MB). This fixing segfault with libaom-av1 and libsvtav1 as they seems to pass
  # large things on the stack.
  RUN \
    wget $WGET_OPTS -O ffmpeg.tar.bz2 "$FFMPEG_URL" && \
    echo "$FFMPEG_SHA256  ffmpeg.tar.bz2" | sha256sum --status -c - && \
    tar xf ffmpeg.tar.bz2 && \
    cd ffmpeg-* && \
    sed -i 's/add_ldexeflags -fPIE -pie/add_ldexeflags -fPIE -static-pie/' configure && \
    ./configure \
    --pkg-config-flags="--static" \
  
negative.code: ARG DAVS2_VERSION=1.7
  ARG DAVS2_URL="https://github.com/pkuvcl/davs2/archive/refs/tags/$DAVS2_VERSION.tar.gz"
  ARG DAVS2_SHA256=b697d0b376a1c7f7eda3a4cc6d29707c8154c4774358303653f0a9727f923cc8
  RUN \
    wget $WGET_OPTS -O davs2.tar.gz "$DAVS2_URL" && \
    echo "$DAVS2_SHA256  davs2.tar.gz" | sha256sum --status -c - && \
    mkdir davs2 && \
    tar xf davs2.tar.gz -C davs2 --strip-components=1
  
  FROM builder AS davs2
  COPY --link --from=davs2_download /tmp/davs2/ /tmp/davs2/
  RUN \
  # TODO: seems to be issues with asm on musl
    cd davs2/build/linux && \
    ./configure --disable-asm --enable-pic --enable-strip --disable-cli && \
    make -j$(nproc) install
  
  FROM download AS libgme_download
  # bump: libgme /LIBGME_COMMIT=([[:xdigit:]]+)/ gitrefs:https://bitbucket.org/mpyne/game-music-emu.git|re:#^refs/heads/master$#|@commit
  # bump: libgme after ./hashupdate Dockerfile LIBGME $LATEST
  # bump: libgme link "Source diff $CURRENT..$LATEST" https://bitbucket.org/mpyne/game-music-emu/branches/compare/$CURRENT..$LATEST
  ARG LIBGME_URL="https://bitbucket.org/mpyne/game-music-emu.git"
  ARG LIBGME_COMMIT=6cd4bdb69be304f58c9253fb08b8362f541b3b4b
  RUN \
    git clone "$LIBGME_URL" libgme && \
    cd libgme && git checkout $LIBGME_COMMIT
  
  FROM builder AS libgme
  COPY --link --from=libgme_download /tmp/libgme/ /tmp/libgme/
  RUN \
    cd libgme && \
    mkdir build && cd build && \
    cmake \
      -G"Unix Makefiles" \
  