diff --git a/projects/gnu.org/gcc/package.yml b/projects/gnu.org/gcc/package.yml index 32090c0b..a9fa96c7 100644 --- a/projects/gnu.org/gcc/package.yml +++ b/projects/gnu.org/gcc/package.yml @@ -30,14 +30,18 @@ build: script: # If we have a patch, apply it - | - if test -n "$PATCH{{version.major}}{{version.minor}}"; then - curl "$PATCH{{version.major}}{{version.minor}}" | patch -p1 -d.. + if test "{{hw.platform}}+{{hw.arch}}" = "darwin+aarch64"; then + if test -n "$PATCH{{version.major}}{{version.minor}}"; then + curl "$PATCH{{version.major}}{{version.minor}}" | patch -p1 -d.. + fi fi # if there's no diff yet, unpack iains' source over ours - | - if test -n "$BRANCH{{version.major}}{{version.minor}}"; then - curl -L "$BRANCH{{version.major}}{{version.minor}}" | tar xz --strip-components=1 -C .. + if test "{{hw.platform}}+{{hw.arch}}" = "darwin+aarch64"; then + if test -n "$BRANCH{{version.major}}{{version.minor}}"; then + curl -L "$BRANCH{{version.major}}{{version.minor}}" | tar xz --strip-components=1 -C .. + fi fi # The spaces mess things up in the env key