29 lines
572 B
Bash
29 lines
572 B
Bash
#!/usr/bin/env bash
|
|
|
|
{{- $packages := splitList " " (includeTemplate "universal/essential-packages" .) -}}
|
|
{{- $pyenvDependencies := list
|
|
"make"
|
|
"build-essential"
|
|
"libssl-dev"
|
|
"zlib1g-dev"
|
|
"libbz2-dev"
|
|
"libreadline-dev"
|
|
"libsqlite3-dev"
|
|
"wget"
|
|
"curl"
|
|
"llvm"
|
|
"libncursesw5-dev"
|
|
"xz-utils"
|
|
"tk-dev"
|
|
"libxml2-dev"
|
|
"libxmlsec1-dev"
|
|
"libffi-dev"
|
|
"liblzma-dev"
|
|
-}}
|
|
{{- if .toolchains.python }}
|
|
{{- $packages = concat $packages $pyenvDependencies -}}
|
|
{{- end }}
|
|
|
|
|
|
sudo apt-get update
|
|
sudo apt-get install -y --no-install-recommends {{ $packages | sortAlpha | uniq | join " " -}}
|