makemkv

## Install required packages on Ubuntu
sudo apt-get install -y build-essential libc6-dev libssl-dev libgl1-mesa-dev libqt4-dev
 
## Download Files
wget http://www.makemkv.com/download/makemkv_v1.6.10_bin.tar.gz -O /tmp/makemkv_oss.tar.gz
# http://www.makemkv.com/download/makemkv-bin-1.8.14.tar.gz
wget http://www.makemkv.com/download/makemkv_v1.6.10_oss.tar.gz -O /tmp/makemkv_bin.tar.gz
# http://www.makemkv.com/download/makemkv-oss-1.8.14.tar.gz
 
## Unzip Files and Remove tarballs
tar -xzf /tmp/makemkv_oss.tar.gz -C /tmp
tar -xzf /tmp/makemkv_bin.tar.gz -C /tmp
 
## Build OSS
cd /tmp/makemkv_*_oss/
make -f makefile.linux
sudo make -f makefile.linux install
 
## Build BIN
cd /tmp/makemkv_*_bin/
make -f makefile.linux
# todo: automate q and yes
sudo make -f makefile.linux install
 
## Copy Icons & Create Menu
sudo cp -r /tmp/makemkv*oss/makemkvgui/src/img/ /usr/share/pixmaps/makemkv
 
# todo: run as sudo
sudo cat > /usr/share/applications/makemkv.desktop << EOF
[Desktop Entry]
Name=MakeMKV
Comment=Convert Blu-Ray and DVD to MKV
Type=Application
Exec=/usr/bin/makemkv
Icon=/usr/share/pixmaps/makemkv/64/mkv_icon.png
Terminal=false
Categories=AudioVideo;Audio;Video;
EOF
 
 
# LINKS
http://www.makemkv.com/forum2/viewtopic.php?f=3&t=224
http://www.makemkv.com/forum2/viewtopic.php?f=3&t=868
http://ubuntuforums.org/showthread.php?t=1461900