This repository has been archived on 2019-06-23. You can view files and clone it, but cannot push or open issues or pull requests.
mumbledj/install-dependencies.sh

37 lines
1.1 KiB
Bash
Raw Normal View History

2015-08-03 23:33:39 +02:00
#!/bin/sh
set -e
2015-08-15 16:32:42 +02:00
# removing old ffmpeg
sudo rm -rf /usr/bin/ffmpeg
sudo rm -rf /usr/bin/X11/ffmpeg
sudo rm -rf /usr/share/man/man1/ffmpeg.1.gz
2015-08-03 23:33:39 +02:00
# check to see if ffmpeg is installed
if [ ! -f "$HOME/bin/ffmpeg" ]; then
echo 'Installing ffmpeg'
wget http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz -O /tmp/ffmpeg.tar.xz
tar -xvf /tmp/ffmpeg.tar.xz --strip 1 --no-anchored ffmpeg ffprobe
chmod a+rx ffmpeg ffprobe
mv ff* ~/bin
else
echo 'Using cached version of ffmpeg.';
fi
2015-08-03 23:33:39 +02:00
2015-08-15 16:43:56 +02:00
# check to see if youtube-dl is installed
if [ ! -f "$HOME/bin/youtube-dl" ]; then
echo 'Installing youtube-dl'
curl https://yt-dl.org/latest/youtube-dl -o ~/bin/youtube-dl
chmod a+rx ~/bin/youtube-dl
else
echo 'Using cached version of youtube-dl.';
fi
2015-08-03 23:33:39 +02:00
# check to see if opus is installed
2015-08-10 02:39:58 +02:00
if [ ! -d "$HOME/opus/lib" ]; then
echo 'Installing opus'
2015-08-03 23:33:39 +02:00
wget http://downloads.xiph.org/releases/opus/opus-1.0.3.tar.gz
tar xzvf opus-1.0.3.tar.gz
cd opus-1.0.3 && ./configure --prefix=$HOME/opus && make && make install
2015-08-03 23:33:39 +02:00
else
echo 'Using cached version of opus.';
fi