mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-28 09:26:49 +08:00
Task-number: QTBUG-108364 Pick-to: 6.5 6.6 Change-Id: I5b1d53aad917ed38f9e26e1fcc1b97b921c0603a Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
27 lines
801 B
Bash
Executable File
27 lines
801 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 $gitUrl >/dev/null
|
|
cd $repDir
|
|
git checkout v2.2 > /dev/null
|
|
./configure --with-pic --enable-shared --prefix=$prefix > /dev/null
|
|
make -j$(nproc) > /dev/null && sudo make install > /dev/null
|
|
rm -rf $repDir
|