From a9d9989b49a3b7943844a2e929b795a51f88d7f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Mon, 7 Dec 2020 16:10:16 +0100 Subject: [PATCH] Add arm64 support --- conf/source/arm64.src | 5 +++++ conf/source/arm64_1.0.src | 5 +++++ conf/source/arm64_1.1.src | 5 +++++ conf/source/arm64_1.10.src | 5 +++++ conf/source/arm64_1.11.src | 5 +++++ conf/source/arm64_1.12.src | 5 +++++ conf/source/arm64_1.2.src | 5 +++++ conf/source/arm64_1.3.src | 5 +++++ conf/source/arm64_1.4.src | 5 +++++ conf/source/arm64_1.5.src | 5 +++++ conf/source/arm64_1.6.src | 5 +++++ conf/source/arm64_1.7.src | 5 +++++ conf/source/arm64_1.8.src | 5 +++++ conf/source/arm64_1.9.src | 5 +++++ scripts/_common.sh | 12 +++++++----- 15 files changed, 77 insertions(+), 5 deletions(-) create mode 100644 conf/source/arm64.src create mode 100644 conf/source/arm64_1.0.src create mode 100644 conf/source/arm64_1.1.src create mode 100644 conf/source/arm64_1.10.src create mode 100644 conf/source/arm64_1.11.src create mode 100644 conf/source/arm64_1.12.src create mode 100644 conf/source/arm64_1.2.src create mode 100644 conf/source/arm64_1.3.src create mode 100644 conf/source/arm64_1.4.src create mode 100644 conf/source/arm64_1.5.src create mode 100644 conf/source/arm64_1.6.src create mode 100644 conf/source/arm64_1.7.src create mode 100644 conf/source/arm64_1.8.src create mode 100644 conf/source/arm64_1.9.src diff --git a/conf/source/arm64.src b/conf/source/arm64.src new file mode 100644 index 0000000..80eda2e --- /dev/null +++ b/conf/source/arm64.src @@ -0,0 +1,5 @@ +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.13.0/gitea-1.13.0-linux-arm64 +SOURCE_SUM=630881e79b18580e81d998c93ad81cc4e44204fb4391c787e07706406fbbb709 +SOURCE_SUM_PRG=sha256sum +SOURCE_FILENAME=gitea +SOURCE_EXTRACT=false diff --git a/conf/source/arm64_1.0.src b/conf/source/arm64_1.0.src new file mode 100644 index 0000000..3117a5d --- /dev/null +++ b/conf/source/arm64_1.0.src @@ -0,0 +1,5 @@ +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.0.2/gitea-1.0.2-linux-arm64 +SOURCE_SUM=b13562f19c41602d2b4f1601931e9d150de8273682969c081a4a5029622eb8b3 +SOURCE_SUM_PRG=sha256sum +SOURCE_FILENAME=gitea +SOURCE_EXTRACT=false diff --git a/conf/source/arm64_1.1.src b/conf/source/arm64_1.1.src new file mode 100644 index 0000000..dc6b942 --- /dev/null +++ b/conf/source/arm64_1.1.src @@ -0,0 +1,5 @@ +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.1.4/gitea-1.1.4-linux-arm64 +SOURCE_SUM=3f7a01669bbad671907942cece744f12390a37771fd8e1142afffeb9ee1f31f7 +SOURCE_SUM_PRG=sha256sum +SOURCE_FILENAME=gitea +SOURCE_EXTRACT=false diff --git a/conf/source/arm64_1.10.src b/conf/source/arm64_1.10.src new file mode 100644 index 0000000..f7f45e4 --- /dev/null +++ b/conf/source/arm64_1.10.src @@ -0,0 +1,5 @@ +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.10.3/gitea-1.10.3-linux-arm64 +SOURCE_SUM=3a0b6470a205c6b9f19a8b31469728f29818c58dd17e85a81ac4a928ab9f9512 +SOURCE_SUM_PRG=sha256sum +SOURCE_FILENAME=gitea +SOURCE_EXTRACT=false diff --git a/conf/source/arm64_1.11.src b/conf/source/arm64_1.11.src new file mode 100644 index 0000000..afc1f2f --- /dev/null +++ b/conf/source/arm64_1.11.src @@ -0,0 +1,5 @@ +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.11.7/gitea-1.11.7-linux-arm64 +SOURCE_SUM=71bc3b41955461491ca3b1a1e4abeaf70dc0cbd15e43e59e2178514b8f1ef0f8 +SOURCE_SUM_PRG=sha256sum +SOURCE_FILENAME=gitea +SOURCE_EXTRACT=false diff --git a/conf/source/arm64_1.12.src b/conf/source/arm64_1.12.src new file mode 100644 index 0000000..ce264f0 --- /dev/null +++ b/conf/source/arm64_1.12.src @@ -0,0 +1,5 @@ +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.12.6/gitea-1.12.6-linux-arm64 +SOURCE_SUM=b1e4620191d817b6d6975358c35197bf659bce04a5690bea2d1e6511054d0866 +SOURCE_SUM_PRG=sha256sum +SOURCE_FILENAME=gitea +SOURCE_EXTRACT=false diff --git a/conf/source/arm64_1.2.src b/conf/source/arm64_1.2.src new file mode 100644 index 0000000..553ba66 --- /dev/null +++ b/conf/source/arm64_1.2.src @@ -0,0 +1,5 @@ +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.2.3/gitea-1.2.3-linux-arm64 +SOURCE_SUM=e779d43f2050c43138509a40540bdd4d16a11e8b76a6f66b447623ead6466fca +SOURCE_SUM_PRG=sha256sum +SOURCE_FILENAME=gitea +SOURCE_EXTRACT=false diff --git a/conf/source/arm64_1.3.src b/conf/source/arm64_1.3.src new file mode 100644 index 0000000..a0f3524 --- /dev/null +++ b/conf/source/arm64_1.3.src @@ -0,0 +1,5 @@ +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.3.3/gitea-1.3.3-linux-arm64 +SOURCE_SUM=348993e5fd119b6708b96a29067ddc41d8fefe4c0d5abf540d1e89e9886202ce +SOURCE_SUM_PRG=sha256sum +SOURCE_FILENAME=gitea +SOURCE_EXTRACT=false diff --git a/conf/source/arm64_1.4.src b/conf/source/arm64_1.4.src new file mode 100644 index 0000000..9d9083e --- /dev/null +++ b/conf/source/arm64_1.4.src @@ -0,0 +1,5 @@ +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.4.3/gitea-1.4.3-linux-arm64 +SOURCE_SUM=af6a55516b94f5bfb7a9744086bd92124e6cba8c3d610935e5fe4c8ba42427ef +SOURCE_SUM_PRG=sha256sum +SOURCE_FILENAME=gitea +SOURCE_EXTRACT=false diff --git a/conf/source/arm64_1.5.src b/conf/source/arm64_1.5.src new file mode 100644 index 0000000..5bed656 --- /dev/null +++ b/conf/source/arm64_1.5.src @@ -0,0 +1,5 @@ +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.5.3/gitea-1.5.3-linux-arm64 +SOURCE_SUM=cdddf46e1711c7964cfd18b4ae37109d4865996b26426d4badaa78da969cfbae +SOURCE_SUM_PRG=sha256sum +SOURCE_FILENAME=gitea +SOURCE_EXTRACT=false diff --git a/conf/source/arm64_1.6.src b/conf/source/arm64_1.6.src new file mode 100644 index 0000000..74a0d32 --- /dev/null +++ b/conf/source/arm64_1.6.src @@ -0,0 +1,5 @@ +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.6.4/gitea-1.6.4-linux-arm64 +SOURCE_SUM=30252ca0adf170e84f52499a502195ad762f4fdca941f40ded80292790eaa2d3 +SOURCE_SUM_PRG=sha256sum +SOURCE_FILENAME=gitea +SOURCE_EXTRACT=false diff --git a/conf/source/arm64_1.7.src b/conf/source/arm64_1.7.src new file mode 100644 index 0000000..31e6f82 --- /dev/null +++ b/conf/source/arm64_1.7.src @@ -0,0 +1,5 @@ +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.7.3/gitea-1.7.3-linux-arm64 +SOURCE_SUM=dc34250ddbcdf3096a7355db419fff615d7fd488e0336bec9bc880091f549c23 +SOURCE_SUM_PRG=sha256sum +SOURCE_FILENAME=gitea +SOURCE_EXTRACT=false diff --git a/conf/source/arm64_1.8.src b/conf/source/arm64_1.8.src new file mode 100644 index 0000000..2737a2e --- /dev/null +++ b/conf/source/arm64_1.8.src @@ -0,0 +1,5 @@ +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.8.3/gitea-1.8.3-linux-arm64 +SOURCE_SUM=e3569745122a793dbf1e86940a00c8843c0c3022513a9d9004593823b9e6abe1 +SOURCE_SUM_PRG=sha256sum +SOURCE_FILENAME=gitea +SOURCE_EXTRACT=false diff --git a/conf/source/arm64_1.9.src b/conf/source/arm64_1.9.src new file mode 100644 index 0000000..1563e22 --- /dev/null +++ b/conf/source/arm64_1.9.src @@ -0,0 +1,5 @@ +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.6/gitea-1.9.6-linux-arm64 +SOURCE_SUM=f11e46fdca921e81255c4b052969e5c6085f24245e6e0da726c9627aaec78252 +SOURCE_SUM_PRG=sha256sum +SOURCE_FILENAME=gitea +SOURCE_EXTRACT=false diff --git a/scripts/_common.sh b/scripts/_common.sh index 250924a..a613b7b 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -14,14 +14,16 @@ SSH_PATH="$DATADIR/.ssh" # Detect the system architecture to download the right tarball # NOTE: `uname -m` is more accurate and universal than `arch` # See https://en.wikipedia.org/wiki/Uname -if [ -n "$(uname -m | grep 64)" ]; then - architecture="x86-64" +if [ -n "$(uname -m | grep arm64)" ] || [ -n "$(uname -m | grep aarch64)" ]; then + architecture="arm64" +elif [ -n "$(uname -m | grep 64)" ]; then + architecture="x86-64" elif [ -n "$(uname -m | grep 86)" ]; then - architecture="i386" + architecture="i386" elif [ -n "$(uname -m | grep armv7)" ]; then - architecture="armv7" + architecture="armv7" elif [ -n "$(uname -m | grep arm)" ]; then - architecture="arm" + architecture="arm" else ynh_die --message "Unable to detect your achitecture, please open a bug describing \ your hardware and the result of the command \"uname -m\"." 1