Commit cc5e107c authored by supechicken666's avatar supechicken666 Committed by GitHub

New Package: Chrome (#4926)

* New Package: chrome

* Add files via upload

* Update chrome.rb

* Update chrome.rb

* Update chrome.rb

* Update chrome.rb

* Update chrome.rb

* Update chrome.rb

* Update chrome.rb

* Update chrome.rb
parent de2c73a6
require 'package'
class Chrome < Package
description 'Google Chrome is a fast, easy to use, and secure web browser.'
homepage 'https://www.google.com/chrome'
compatibility 'x86_64'
@_ver = '87.0.4280.141'
@_deb = "google-chrome-stable_#{@_ver}-1_amd64.deb"
version @_ver
case ARCH
when 'x86_64'
source_url "https://dl.google.com/linux/deb/pool/main/g/google-chrome-stable/#{@_deb}"
source_sha256 'b7edb7cd5c166bf3c0a1d245baa5924e242c3b81b97090468bec778f41f40373'
depends_on 'alien' => :build
depends_on 'nspr'
depends_on 'cairo'
depends_on 'gtk3'
depends_on 'expat'
depends_on 'cras'
depends_on 'sommelier'
end
def self.build
Dir.chdir '..' do
system "alien -tc #{@_deb}"
system "tar xf google-chrome-stable-#{@_ver}.tgz"
end
end
def self.install
Dir.chdir '..' do
ENV['CREW_NOT_STRIP'] = '1'
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.mv 'opt/', CREW_DEST_PREFIX
FileUtils.mv 'usr/share', CREW_DEST_PREFIX
FileUtils.mv 'etc', CREW_DEST_PREFIX
FileUtils.ln_s "#{CREW_PREFIX}/opt/google/chrome/google-chrome", "#{CREW_DEST_PREFIX}/bin/google-chrome"
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment