homebrew-cask-versions/Casks/opera-next.rb
Joey Hoer 40c9772371 Add Opera Next Cask
Add Opera Next cask which grabs the URL of the 'latest' version from the Opera Next website. The string `&ext=.dmg` is being appended to the URL to allow Cask to add the proper file extension to the downloaded file.
2013-07-13 15:02:18 -04:00

7 lines
365 B
Ruby

class OperaNext < Cask
url 'http://www.opera.com' << %x( curl -Ls 'http://www.opera.com/download/get/?partner=www&opsys=MacOS&product=Opera%20Next' | grep '/download/' | head -1 | perl -pe 's/.*'\\''(\\/.*)'\\''.*/$1/' | tr -d '\n' ) << '&amp;ext=.dmg'
homepage 'http://www.opera.com/developer/next'
version 'latest'
no_checksum
link 'Opera Next.app'
end