Helper script to build MakeMKV
Posted: Fri Feb 11, 2011 2:17 am
Wanted to put this out there to see if this helps ease the building of MakeMKV. Any improvements would be greatly appreciated. The only change you will have to make over time is to update the curr_version variable to something other than 1.6.4 in the future.
This script downloads the gz files, unpacks them, builds makemkv, installs makemkv, deletes the zips and build folders, downloads an icon to /usr/share/pixmaps and then creates a gnome menu entry for makemkv
Copy all of this into the new file
change the permissions to make it executable
now run it!
This script downloads the gz files, unpacks them, builds makemkv, installs makemkv, deletes the zips and build folders, downloads an icon to /usr/share/pixmaps and then creates a gnome menu entry for makemkv
Code: Select all
gedit buildMakeMkv.sh
Code: Select all
#!/bin/sh
export curr_version=1.6.4
export bin_zip=makemkv_v${curr_version}_bin.tar.gz
export oss_zip=makemkv_v${curr_version}_oss.tar.gz
export oss_folder=makemkv_v${curr_version}_bin
export bin_folder=makemkv_v${curr_version}_oss
sudo apt-get install build-essential libc6-dev libssl-dev libgl1-mesa-dev libqt4-dev
wget http://www.makemkv.com/download/$bin_zip
wget http://www.makemkv.com/download/$oss_zip
tar -xzvf $bin_zip
tar -xzvf $oss_zip
cd $oss_folder
make -f makefile.linux
sudo make -f makefile.linux install
cd ../$bin_folder
make -f makefile.linux
sudo make -f makefile.linux install
cd ..
echo removing zips and folders
rm $bin_zip
rm $oss_zip
rm -rf $oss_folder
rm -rf $bin_folder
echo making gnome menu entry
pushd /usr/share/pixmaps
sudo wget http://www.softicons.com/download/system-icons/lozengue-filetype-icons-by-gurato/png/256/MKV.png
sudo rm -f MKV.png.*
popd
file="[Desktop Entry]"
file=${file}'\n'"Type=Application"
file=${file}'\n'"Encoding=UTF-8"
file=${file}'\n'"Name=Make MKV"
file=${file}'\n'"Comment=Decrypt Blu-Ray to mkv"
file=${file}'\n'"Icon=/usr/share/pixmaps/MKV.png"
file=${file}'\n'"TryExec=makemkv"
file=${file}'\n'"Exec=makemkv"
file=${file}'\n'"Terminal=false"
file=${file}'\n'"Categories=GTK;AudioVideo;Audio;Video;"
echo -e ${file} > ~/.local/share/applications/makemkv.desktop
Code: Select all
chmod a+x buildMakeMkv.sh
Code: Select all
./buildMakeMkv.sh