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