mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
26 lines
1.0 KiB
Ruby
26 lines
1.0 KiB
Ruby
require 'package'
|
|
|
|
class Sublime_merge < Package
|
|
description 'A snappy UI, three-way merge tool,side-by-side diffs, syntax highlighting, and more.'
|
|
homepage 'https://www.sublimemerge.com/'
|
|
version 'Build 2068'
|
|
license 'Copyright Sublime HQ Pty Ltd' # Shareware for evaluation purposes only. Source code is not available.
|
|
compatibility 'x86_64'
|
|
source_url 'https://download.sublimetext.com/sublime_merge_build_2068_x64.tar.xz'
|
|
source_sha256 '0ac7994208eaafc07ae9295fff215966c9d115cdf3a8218a140cd274c45074d2'
|
|
|
|
depends_on 'sommelier'
|
|
|
|
def self.install
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/sublime_merge"
|
|
FileUtils.cp_r '.', "#{CREW_DEST_PREFIX}/share/sublime_merge/"
|
|
FileUtils.ln_s "#{CREW_PREFIX}/share/sublime_merge/sublime_merge", "#{CREW_DEST_PREFIX}/bin/sublime_merge"
|
|
end
|
|
|
|
def self.postinstall
|
|
puts "\nCongratulations! You have installed Sublime Merge on Chrome OS!".lightgreen
|
|
puts "Now, please run 'sublime_merge' to get started.\n".lightgreen
|
|
end
|
|
end
|