-
-
Notifications
You must be signed in to change notification settings - Fork 156
Expand file tree
/
Copy pathInstallOpus.sh
More file actions
33 lines (25 loc) · 689 Bytes
/
InstallOpus.sh
File metadata and controls
33 lines (25 loc) · 689 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
baseDir=`pwd`
OpusBaseName="opus-1.3.1"
OpusFileName="$OpusBaseName.tar.gz"
# Download the Opus library
if [ ! -e "$OpusFileName" ]; then
opusLink="http://downloads.xiph.org/releases/opus/$OpusFileName"
echo "Downloading $opusLink"
wget "$opusLink"
else
echo "Opus archive existing already"
fi
# Extract the archive
tar -vxf "$OpusFileName"
# Go into the extracted directory
cd "$OpusBaseName"
# Build the library
./configure && make && sudo make install
# Move to global folder
if [ ! -f /usr/lib/libopus.so ]; then
sudo cp ".libs/libopus.so" "/usr/lib/"
else
echo "'/usr/lib/libopus.so' already exists, will not be overwritten"
fi
echo "Done"