mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 19:36:04 +08:00
Also adds executable attributes to shell scripts that were missing it. Change-Id: Id52ef495147fdbfb5cb1a1f711fac530e0e85f3b Reviewed-by: Jukka Jokiniva <jukka.jokiniva@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
27 lines
798 B
Bash
Executable File
27 lines
798 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (C) 2022 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
|
|
# This script installs flite from sources.
|
|
# Requires make, GCC and git to be in PATH.
|
|
set -ex
|
|
|
|
# shellcheck source=../unix/DownloadURL.sh
|
|
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
|
|
# shellcheck source=../unix/SetEnvVar.sh
|
|
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
|
|
|
repName="flite"
|
|
gitUrl="https://github.com/festvox/$repName.git"
|
|
tmpdir="/tmp"
|
|
repDir="$tmpdir/$repName"
|
|
prefix="/usr"
|
|
rm -rf "$repDir"
|
|
cd "$tmpdir"
|
|
git clone -q "$gitUrl"
|
|
cd "$repDir"
|
|
git checkout -q v2.2
|
|
./configure --with-pic --enable-shared --prefix="$prefix" > /dev/null
|
|
make "-j$(nproc)" > /dev/null && sudo make install > /dev/null
|
|
rm -rf "$repDir"
|