parent
7772936e6d
commit
d0352e20ce
@ -1,19 +1,9 @@ |
|||||||
#!/usr/bin/env bash |
#!/usr/bin/env bash |
||||||
|
|
||||||
# Script to download Opus's source code |
source ${SCRIPTS_DIR}/common-functions.sh |
||||||
|
|
||||||
# Exports SOURCES_DIR_libopus - path where actual sources are stored |
|
||||||
|
|
||||||
OPUS_VERSION=1.3.1 |
OPUS_VERSION=1.3.1 |
||||||
echo "Using libopus $OPUS_VERSION" |
|
||||||
OPUS_SOURCES=opus-${OPUS_VERSION} |
|
||||||
|
|
||||||
if [[ ! -d "$OPUS_SOURCES" ]]; then |
|
||||||
TARGET_FILE_NAME=opus-${OPUS_VERSION}.tar.gz |
|
||||||
|
|
||||||
curl https://archive.mozilla.org/pub/opus/${TARGET_FILE_NAME} --output ${TARGET_FILE_NAME} |
|
||||||
tar xf ${TARGET_FILE_NAME} -C . |
|
||||||
rm ${TARGET_FILE_NAME} |
|
||||||
fi |
|
||||||
|
|
||||||
export SOURCES_DIR_libopus=$(pwd)/${OPUS_SOURCES} |
downloadTarArchive \ |
||||||
|
"libopus" \ |
||||||
|
"https://archive.mozilla.org/pub/opus/opus-${OPUS_VERSION}.tar.gz" |
||||||
|
Loading…
Reference in new issue