mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-20 06:16:57 -06:00
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.
7 lines
365 B
Ruby
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' ) << '&ext=.dmg'
|
|
homepage 'http://www.opera.com/developer/next'
|
|
version 'latest'
|
|
no_checksum
|
|
link 'Opera Next.app'
|
|
end
|