provision_focal64.sh
author Edouard Tisserant <edouard.tisserant@gmail.com>
Wed, 10 Aug 2022 17:50:04 +0200
changeset 83 db3f332d7144
parent 37 fd09116d3537
permissions -rwxr-xr-x
Add new sanity checksums.
#!/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