|
|
|
@ -4,13 +4,23 @@ set -e |
|
|
|
|
|
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" |
|
|
|
|
ROOT="$(cd $DIR/../ && pwd)" |
|
|
|
|
SUDO="" |
|
|
|
|
|
|
|
|
|
# NOTE: this is used in a docker build, so do not run any scripts here. |
|
|
|
|
|
|
|
|
|
# Use sudo if not root |
|
|
|
|
if [[ ! $(id -u) -eq 0 ]]; then |
|
|
|
|
if [[ -z $(which sudo) ]]; then |
|
|
|
|
echo "Please install sudo or run as root" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
SUDO="sudo" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# Install packages present in all supported versions of Ubuntu |
|
|
|
|
function install_ubuntu_common_requirements() { |
|
|
|
|
sudo apt-get update |
|
|
|
|
sudo apt-get install -y --no-install-recommends \ |
|
|
|
|
$SUDO apt-get update |
|
|
|
|
$SUDO apt-get install -y --no-install-recommends \ |
|
|
|
|
autoconf \ |
|
|
|
|
build-essential \ |
|
|
|
|
ca-certificates \ |
|
|
|
@ -74,7 +84,7 @@ function install_ubuntu_common_requirements() { |
|
|
|
|
function install_ubuntu_jammy_requirements() { |
|
|
|
|
install_ubuntu_common_requirements |
|
|
|
|
|
|
|
|
|
sudo apt-get install -y --no-install-recommends \ |
|
|
|
|
$SUDO apt-get install -y --no-install-recommends \ |
|
|
|
|
qtbase5-dev \ |
|
|
|
|
qtchooser \ |
|
|
|
|
qt5-qmake \ |
|
|
|
@ -86,7 +96,7 @@ function install_ubuntu_jammy_requirements() { |
|
|
|
|
function install_ubuntu_focal_requirements() { |
|
|
|
|
install_ubuntu_common_requirements |
|
|
|
|
|
|
|
|
|
sudo apt-get install -y --no-install-recommends \ |
|
|
|
|
$SUDO apt-get install -y --no-install-recommends \ |
|
|
|
|
libavresample-dev \ |
|
|
|
|
qt5-default \ |
|
|
|
|
python-dev |
|
|
|
|