Commit 02d5792b authored by Casey Strouse's avatar Casey Strouse Committed by GitHub

Merge pull request #4106 from uberhacker/update-atom-package

Update atom from 1.46.0 to 1.47.0
parents 070d029b 8dd8b8d6
...@@ -3,7 +3,7 @@ require 'package' ...@@ -3,7 +3,7 @@ require 'package'
class Atom < Package class Atom < Package
description 'The hackable text editor' description 'The hackable text editor'
homepage 'https://atom.io/' homepage 'https://atom.io/'
version '1.46.0' version '1.47.0'
compatibility 'x86_64' compatibility 'x86_64'
case ARCH case ARCH
when 'x86_64' when 'x86_64'
...@@ -17,15 +17,15 @@ class Atom < Package ...@@ -17,15 +17,15 @@ class Atom < Package
end end
binary_url ({ binary_url ({
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/atom-1.46.0-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/atom-1.47.0-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256 ({
x86_64: '547bad83d65d8e06ef3738562825230697ea1e99d336d5ca67a8e09dacf873ea', x86_64: 'd0a7efc1177865775a27f80a16ec9b8b3110cfa2695d2e1cae4b3173844c912a',
}) })
def self.build def self.build
system "wget https://github.com/atom/atom/releases/download/v#{version}/atom-amd64.deb" system "wget https://github.com/atom/atom/releases/download/v#{version}/atom-amd64.deb"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('atom-amd64.deb') ) == '1efdd2ab08a8290c98386868b98ed6415f833fc8107c1141233a60bc5e8f212b' abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('atom-amd64.deb') ) == '500117c2da4b6a2a0d1342559777c921e577aec216ecad2c04b5d800b7d460b3'
system "alien -tc atom-amd64.deb" system "alien -tc atom-amd64.deb"
system "tar xvf atom-#{version}.tgz" system "tar xvf atom-#{version}.tgz"
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