provision_focal64.sh
author Edouard Tisserant <edouard.tisserant@gmail.com>
Sun, 14 Aug 2022 15:11:20 +0200
changeset 96 52b64ebc1970
parent 37 fd09116d3537
permissions -rwxr-xr-x
GH CD: seems that reusable workflow outputs can't make their way through.
#!/usr/bin/env bash

# This script is to be executed as root to provision necessary stuff
# to run distribution build on a blank Ubuntu Focal 64 image

set -xe
dpkg --add-architecture i386

apt-get update

apt-get install -y locales

locale-gen en_US.UTF-8

TZ="America/Paris" \
DEBIAN_FRONTEND="noninteractive" \
apt-get install -y --no-install-recommends \
     autoconf                   \
     automake                   \
     bc                         \
     bison                      \
     build-essential            \
     ca-certificates            \
     cpio                       \
     cmake                      \
     fakeroot                   \
     file                       \
     flex                       \
     gettext                    \
     gawk                       \
     git                        \
     gperf                      \
     gcc-multilib               \
     g++-multilib               \
     help2man                   \
     less                       \
     libarchive-dev             \
     libcurl4-openssl-dev       \
     libssl-dev                 \
     libtool                    \
     libtool-bin                \
     lzma                       \
     make                       \
     mercurial                  \
     meson                      \
     mingw-w64                  \
     ncurses-dev                \
     nsis                       \
     rsync                      \
     pkg-config                 \
     python                     \
     python-dev                 \
     python3-distutils          \
     subversion                 \
     swig                       \
     texinfo                    \
     unrar                      \
     unzip                      \
     wget                       \
     xvfb                       \
     zip


## for winehq-staging
#     gnupg                      \
#     libgpgme-dev               \
#     software-properties-common \
# wget -nc https://dl.winehq.org/wine-builds/winehq.key
# apt-key add winehq.key
# add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
# apt-get update

echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections
echo ttf-mscorefonts-installer msttcorefonts/present-mscorefonts-eula note | debconf-set-selections

apt-get install -y --install-recommends \
     wine-stable winbind

apt-get clean -y