anchor.diff:  RUN \
     wget $WGET_OPTS -O rav1e.tar.gz "$RAV1E_URL" && \
     echo "$RAV1E_SHA256  rav1e.tar.gz" | sha256sum --status -c - && \
  -  tar xf rav1e.tar.gz && \
  -  cd rav1e-* && \
  +  mkdir rav1e && \
  +  tar xf rav1e.tar.gz -C rav1e --strip-components=1
  +
  +FROM builder AS rav1e
  +COPY --link --from=rav1e_download /tmp/rav1e/ /tmp/rav1e/
  +RUN apk add --no-cache \
  +  rust cargo
  +# debug builds a bit faster and we don't care about runtime speed
  +RUN cargo install --debug --version 0.9.5 cargo-c
  +RUN \
  +  cd rav1e && \
     cargo cinstall --release
   # cargo-c/alpine rustc results in Libs.private depend on gcc_s
   # https://gitlab.alpinelinux.org/alpine/aports/-/issues/11806
   RUN sed -i 's/-lgcc_s//' /usr/local/lib/pkgconfig/rav1e.pc
   
  -# bump: librtmp /LIBRTMP_COMMIT=([[:xdigit:]]+)/ gitrefs:https://git.ffmpeg.org/rtmpdump.git|re:#^refs/heads/master$#|@commit
  -# bump: librtmp after ./hashupdate Dockerfile LIBRTMP $LATEST
  -# bump: librtmp link "Commit diff $CURRENT..$LATEST" https://git.ffmpeg.org/gitweb/rtmpdump.git/commitdiff/$LATEST?ds=sidebyside
  -ARG LIBRTMP_URL="https://git.ffmpeg.org/rtmpdump.git"
  -ARG LIBRTMP_COMMIT=f1b83c10d8beb43fcc70a6e88cf4325499f25857
  -RUN \
  -  git clone "$LIBRTMP_URL" && \
  -  cd rtmpdump && git checkout $LIBRTMP_COMMIT && \
  -  # Patch/port librtmp to openssl 1.1
  -  for _dlp in dh.h handshake.h hashswf.c; do \
  -    wget $WGET_OPTS https://raw.githubusercontent.com/microsoft/vcpkg/38bb87c5571555f1a4f64cb4ed9d2be0017f9fc1/ports/librtmp/${_dlp%.*}.patch; \
  -    patch librtmp/${_dlp} < ${_dlp%.*}.patch; \
  -  done && \
  -  make SYS=posix SHARED=off -j$(nproc) install
  -
  +FROM download AS rubberband_download
   # bump: rubberband /RUBBERBAND_VERSION=([\d.]+)/ https://github.com/breakfastquay/rubberband.git|^2
   # bump: rubberband after ./hashupdate Dockerfile RUBBERBAND $LATEST
   # bump: rubberband link "CHANGELOG" https://github.com/breakfastquay/rubberband/blob/default/CHANGELOG
  
positive.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
  # TODO: seems to be issues with asm on musl
  RUN \
    wget $WGET_OPTS -O davs2.tar.gz "$DAVS2_URL" && \
    echo "$DAVS2_SHA256  davs2.tar.gz" | sha256sum --status -c - && \
    tar xf davs2.tar.gz && \
    cd davs2-*/build/linux && ./configure --disable-asm --enable-pic --enable-strip --disable-cli && \
    make -j$(nproc) install
  
  # bump: fdk-aac /FDK_AAC_VERSION=([\d.]+)/ https://github.com/mstorsjo/fdk-aac.git|*
  # bump: fdk-aac after ./hashupdate Dockerfile FDK_AAC $LATEST
  # bump: fdk-aac link "ChangeLog" https://github.com/mstorsjo/fdk-aac/blob/master/ChangeLog
  # bump: fdk-aac link "Source diff $CURRENT..$LATEST" https://github.com/mstorsjo/fdk-aac/compare/v$CURRENT..v$LATEST
  ARG FDK_AAC_VERSION=2.0.2
  ARG FDK_AAC_URL="https://github.com/mstorsjo/fdk-aac/archive/v$FDK_AAC_VERSION.tar.gz"
  ARG FDK_AAC_SHA256=7812b4f0cf66acda0d0fe4302545339517e702af7674dd04e5fe22a5ade16a90
  RUN \
    wget $WGET_OPTS -O fdk-aac.tar.gz "$FDK_AAC_URL" && \
    echo "$FDK_AAC_SHA256  fdk-aac.tar.gz" | sha256sum --status -c - && \
    tar xf fdk-aac.tar.gz && \
    cd fdk-aac-* && ./autogen.sh && ./configure --disable-shared --enable-static && \
    make -j$(nproc) install
  
  # 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" && \
    cd game-music-emu && git checkout $LIBGME_COMMIT && \
    mkdir build && cd build && \
    cmake \
      -G"Unix Makefiles" \
  
negative.code: RUN \
    wget $WGET_OPTS -O opencoreamr.tar.gz "$OPENCOREAMR_URL" && \
    echo "$OPENCOREAMR_SHA256  opencoreamr.tar.gz" | sha256sum --status -c - && \
    mkdir opencoreamr && \
    tar xf opencoreamr.tar.gz -C opencoreamr --strip-components=1
  
  FROM builder AS opencoreamr
  COPY --link --from=opencoreamr_download /tmp/opencoreamr/ /tmp/opencoreamr/
  RUN \
    cd opencoreamr && \
    ./configure --enable-static --disable-shared && \
    make -j$(nproc) install
  
  FROM download AS openjpeg_download
  # bump: openjpeg /OPENJPEG_VERSION=([\d.]+)/ https://github.com/uclouvain/openjpeg.git|*
  # bump: openjpeg after ./hashupdate Dockerfile OPENJPEG $LATEST
  # bump: openjpeg link "CHANGELOG" https://github.com/uclouvain/openjpeg/blob/master/CHANGELOG.md
  