From d0a83719450ab16bb00adfd4f75ab13d6a7f0cd4 Mon Sep 17 00:00:00 2001 From: gur Date: Sun, 22 Oct 2023 20:33:03 +0000 Subject: [PATCH] Add Chimera support --- .../share/brl-fetch/distros/chimera | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100755 src/slash-bedrock/share/brl-fetch/distros/chimera diff --git a/src/slash-bedrock/share/brl-fetch/distros/chimera b/src/slash-bedrock/share/brl-fetch/distros/chimera new file mode 100755 index 00000000..d4cda5e2 --- /dev/null +++ b/src/slash-bedrock/share/brl-fetch/distros/chimera @@ -0,0 +1,75 @@ +#!/bedrock/libexec/busybox sh +# +# Chimera Linux bootstrap support +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# version 2 as published by the Free Software Foundation. +# +# Copyright (c) 2016-2019 Daniel Thau +# + +# shellcheck source=src/slash-bedrock/libexec/brl-fetch +. /bedrock/share/common-code +trap 'fetch_abort "Unexpected error occurred."' EXIT + +check_supported() { + false +} + +speed_test_url() { + echo "current/main/${distro_arch}/APKINDEX.tar.gz" +} + +list_mirrors() { + echo 'https://repo.chimera-linux.org/' +} + +brl_arch_to_distro() { + case "${1}" in + "aarch64") echo "aarch64" ;; + "ppc64le") echo "ppc64le" ;; + "ppc64" ) echo "ppc64" ;; + "x86_64") echo "x86_64" ;; + *) abort "brl does not know how to translate arch \"${1}\" to ${distro} format" ;; + esac +} + +list_architectures() { + cat <