Add submarine formula

FIX tar.gz installation, replace patch with an inreplace
Merge branch 'submarine' of github.com:XL64/homebrew into submarine