install-meson.sh (644B)
1 #!/usr/bin/env bash 2 3 # This Source Code Form is subject to the terms of the Mozilla Public 4 # License, v. 2.0. If a copy of the MPL was not distributed with this 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 # This file downloads and installs meson which is required for building 8 # osmesa-src, a dependency of wrench. 9 10 set -o errexit 11 set -o nounset 12 set -o pipefail 13 set -o xtrace 14 15 MESON_VER=1.1.0 16 MESON_BASE_URL="https://github.com/mesonbuild/meson/releases/download" 17 18 curl -L ${MESON_BASE_URL}/${MESON_VER}/meson-${MESON_VER}.tar.gz -o meson.tar.gz 19 tar -xf meson.tar.gz 20 mv meson-${MESON_VER} meson 21 cd meson 22 ln -s meson.py meson