-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
30 lines (28 loc) · 827 Bytes
/
install.sh
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
echo "Installing apt packages"
sudo apt-get install build-essential pkg-config libc6-dev libssl-dev libexpat1-dev libavcodec-dev libgl1-mesa-dev git ffmpeg wget qtbase5-dev zlib1g-devmkdir makemkv
cd makemkv
echo "Downloading Makemkv"
wget https://www.makemkv.com/download/makemkv-bin-1.17.5.tar.gz
wget https://www.makemkv.com/download/makemkv-oss-1.17.5.tar.gz
tar xvf makemkv-bin-1.17.5.tar.gz
tar xvf makemkv-oss-1.17.5.tar.gz
echo "Installing makemkv-oss"
cd makemkv-oss-1.17.5
sed -i "s/av_mallocz_array/av_calloc/g" libffabi/src/ffabi.c
./configure
make
sudo make install
cd ..
cd makemkv-bin-1.17.5
echo "Installing makemkv-bin"
make
sudo make install
echo "Cleaing up"
cd ../..
rm -rf makemkv
if which makemkv >/dev/null 2>&1; then
echo "Installed successfully"
else
echo "Installation Faild"
fi
echo "Done"