2024-01-19 12:41:28 -03:00
|
|
|
{{- define "linux_packages" }}
|
|
|
|
{{- range $element := .LinuxPackages }}
|
|
|
|
{{- if eq $element.Arch "amd64" }}
|
|
|
|
if Hardware::CPU.intel?
|
|
|
|
{{- end }}
|
|
|
|
{{- if eq $element.Arch "arm" }}
|
|
|
|
if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
|
|
|
|
{{- end }}
|
|
|
|
{{- if eq $element.Arch "arm64" }}
|
|
|
|
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
|
|
|
|
{{- end }}
|
|
|
|
url "{{ $element.DownloadURL }}"
|
|
|
|
{{- if .DownloadStrategy }}, using: {{ .DownloadStrategy }}{{- end }}
|
2024-02-26 17:22:12 -03:00
|
|
|
{{- if .Headers }},
|
|
|
|
headers: [{{ printf "\n" }}
|
|
|
|
{{- join .Headers | indent 10 }}
|
|
|
|
]
|
|
|
|
{{- end }}
|
2024-01-19 12:41:28 -03:00
|
|
|
sha256 "{{ $element.SHA256 }}"
|
|
|
|
|
|
|
|
def install
|
|
|
|
{{- range $index, $element := .Install }}
|
|
|
|
{{ . -}}
|
|
|
|
{{- end }}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|