[
  {
    "file": "build-native-perl.sh",
    "original_sha256": "f49cde750f6b919c0fb39db77c70a23d7386db53e42ddfb5b09b595aa61fa495",
    "adapted_sha256": "2fbf62ac44f79f323d7968bdc097bdc9bbd6ad6ef5468e0ba11362279d5f0f08",
    "replacements": [
      {
        "old": "curl -fsSL \"$URLPERL\"",
        "new": "cat /work/inputs/perl-5.42.0.tar.gz"
      },
      {
        "old": "echo \"yes\" | cpan App::cpanminus\ncpanm Perl::Tidy",
        "new": ""
      }
    ]
  },
  {
    "file": "build-wasi-perl.sh",
    "original_sha256": "71969720f3983e5c87b712ecf9cd4dc8aba018b1882f099bf6885d587add39a8",
    "adapted_sha256": "99270dd7ffdc54d9fc38af57f41690853ca8c49203f9ad58296569c3bb64e735",
    "replacements": [
      {
        "old": "curl -fsSL \"$URLPERL\"",
        "new": "cat /work/inputs/perl-5.42.0.tar.gz"
      }
    ]
  },
  {
    "file": "build-wasi-libs.sh",
    "original_sha256": "22511fead524ab13c1db253ec4359601ea11324bb8cf721c3a4b664fab2e7a36",
    "adapted_sha256": "1318f5ed2555710dd1ddddae2c2eb4a4bb47eecaddb11bd44fb31d4557f19d38",
    "replacements": [
      {
        "old": "curl -fsSL \"https://zlib.net/fossils/zlib-${ZLIB_VERSION}.tar.gz\"",
        "new": "cat /work/inputs/zlib-1.3.1.tar.gz"
      },
      {
        "old": "curl -fsSL \"https://sourceware.org/pub/bzip2/bzip2-${BZIP2_VERSION}.tar.gz\"",
        "new": "cat /work/inputs/bzip2-1.0.8.tar.gz"
      },
      {
        "old": "make -j\"$(nproc)\"",
        "new": "make -j\"$NPROC\""
      }
    ]
  },
  {
    "file": "build-wasm.sh",
    "original_sha256": "1843245cdee8f4577055d12393e2efdf2486f90dc7af8d810be283234e00b851",
    "adapted_sha256": "c36f9a8b901d67640bd21e48f6cff8ae49282b75b4c103b3227954488c7ad44a",
    "replacements": [
      {
        "old": "-Wl,--initial-memory=\"$INITIAL_MEMORY\"",
        "new": "-Wl,--initial-memory=\"$INITIAL_MEMORY\" -Wl,--max-memory=268435456"
      }
    ]
  },
  {
    "file": "prepare-prefix.sh",
    "original_sha256": "a71a6298d4c509e14a1d01e19cc39b7b2ded0162ff0f916a1d30906c7cf005f3",
    "adapted_sha256": "a34f9b3cc7c746199a6c473afc8768fbbc52f0f2ea2d06a6ad2c2f7db3792f98",
    "replacements": [
      {
        "old": "cp -R \"$SITE_PERL/File/\"* \"/zeroperl/lib/$PERL_VERSION/wasm32-wasi/File/\" 2>/dev/null || true",
        "new": "cp -R \"$SITE_PERL/File/\"* \"/zeroperl/lib/$PERL_VERSION/wasm32-wasi/File/\""
      }
    ]
  },
  {
    "file": "build-exiftool.sh",
    "original_sha256": "f900ed4f1629a09f360992659232bb1785db7fc210d495b42db7f61509e2c44a",
    "adapted_sha256": "a6171af974ca29b8012a69c54027c6b9b4755529c4f2425c15b4ca15d23f21aa",
    "replacements": [
      {
        "old": "curl -fsSL \"https://www.exiftool.org/Image-ExifTool-${EXIFTOOL_VERSION}.tar.gz\"",
        "new": "cat /work/inputs/exiftool-13.42.tar.gz"
      },
      {
        "old": "cd \"/build/Image-ExifTool-${EXIFTOOL_VERSION}\"",
        "new": "cd \"/build/exiftool-${EXIFTOOL_VERSION}\""
      },
      {
        "old": "perltidy --delete-block-comments --delete-side-comments --delete-pod \\\n    \"$NATIVE_DIR/prefix/bin/exiftool\" -o \"$REPO_DIR/exiftool.min.pl\"",
        "new": "cp \"$NATIVE_DIR/prefix/bin/exiftool\" \"$REPO_DIR/exiftool.min.pl\""
      }
    ]
  }
]
