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

atom => 1.55.0 (#5545)

* Update atom.rb
parent 08549b78
...@@ -3,37 +3,21 @@ require 'package' ...@@ -3,37 +3,21 @@ 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.48.0' @_ver = '1.55.0'
version @_ver
license 'MIT' license 'MIT'
compatibility 'x86_64' compatibility 'x86_64'
case ARCH
when 'x86_64'
source_url 'file:///dev/null'
source_sha256 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
depends_on 'alien' => :build
depends_on 'fakeroot'
depends_on 'gtk3'
depends_on 'libsecret'
depends_on 'sommelier'
end
binary_url ({ source_url "https://github.com/atom/atom/releases/download/v#{@_ver}/atom-amd64.deb"
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/atom-1.48.0-chromeos-x86_64.tar.xz', source_sha256 'e1c650fcfdfc09aafef0ecfe041d254ad9007fb3ca797dafd21c8333fd0b1340'
})
binary_sha256 ({
x86_64: '0ec7fd1c4aa6c2451c02f6c294e37063b84b1bb97e921c9dee65e99c64ee19e5',
})
def self.build depends_on 'fakeroot'
system "curl -#LO https://github.com/atom/atom/releases/download/v#{version}/atom-amd64.deb" depends_on 'gtk3'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('atom-amd64.deb') ) == '41a717bb3749a77f1b55f9262417c5dc8cf9e22d99b5951a85d238ea575f2399' depends_on 'libsecret'
system "alien -tc atom-amd64.deb" depends_on 'sommelier'
system "tar xvf atom-#{version}.tgz"
end
def self.install def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}" FileUtils.mkdir_p CREW_DEST_PREFIX
FileUtils.mv 'usr/bin', "#{CREW_DEST_PREFIX}" FileUtils.mv Dir['*'], CREW_DEST_PREFIX
FileUtils.mv 'usr/share', "#{CREW_DEST_PREFIX}"
end 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