provision_focal64.sh
author Edouard Tisserant <edouard.tisserant@gmail.com>
Mon, 13 Feb 2023 22:10:58 +0100
changeset 116 dc462ee1c0f5
parent 37 fd09116d3537
permissions -rwxr-xr-x
Windows installer: add winpaths.py to extend %PATH% so that build find msys2 binaries including Make.
#!/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