From 00948edbaaaa17a1fc771ef93ba1d4bb0722da96 Mon Sep 17 00:00:00 2001 From: hackerman <77645077+chukfinley@users.noreply.github.com> Date: Fri, 29 Sep 2023 02:13:26 +0000 Subject: [PATCH] Create install.sh --- install.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..6c1259f --- /dev/null +++ b/install.sh @@ -0,0 +1,31 @@ +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 +mkdir 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" +