Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Łukasz Nowak
chromebrew
Commits
2fa4fe9a
Commit
2fa4fe9a
authored
Jan 06, 2020
by
Ed Reel
Committed by
Chris Thurber
Jan 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add brackets package (#3759)
Add pre-built binaries
parent
767bfd29
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
0 deletions
+53
-0
packages/brackets.rb
packages/brackets.rb
+53
-0
No files found.
packages/brackets.rb
0 → 100644
View file @
2fa4fe9a
require
'package'
class
Brackets
<
Package
description
'A modern, open source text editor that understands web design.'
homepage
'http://brackets.io/'
version
'1.14.1'
source_url
'https://github.com/adobe/brackets/archive/release-1.14.1.tar.gz'
source_sha256
'9a07fc80a155d2490be4eff77a2622539012325cef18e89305b8bc45c4c3833d'
binary_url
({
i686:
'https://dl.bintray.com/chromebrew/chromebrew/brackets-1.14.1-chromeos-i686.tar.xz'
,
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/brackets-1.14.1-chromeos-x86_64.tar.xz'
,
})
binary_sha256
({
i686:
'815c23b388b937fbfeb8bb109297c597dcebe3b031ad3e1a718463f5a38cb67e'
,
x86_64:
'ddcef49b895b1d132ceef90406044ce7699cc21dfa1d048e059bafa2945399bc'
,
})
depends_on
'alien'
=>
:build
depends_on
'gtk2'
depends_on
'libgconf'
depends_on
'xdg_base'
depends_on
'sommelier'
def
self
.
build
case
ARCH
when
'x86_64'
system
"wget https://github.com/adobe/brackets/releases/download/release-
#{
version
}
/Brackets.Release.
#{
version
}
.64-bit.deb"
abort
'Checksum mismatch. :/ Try again.'
.
lightred
unless
Digest
::
SHA256
.
hexdigest
(
File
.
read
(
"Brackets.Release.
#{
version
}
.64-bit.deb"
)
)
==
'dd8346ee7061e8820ecb7859f5cdccb6f199b144dd17192c217dd49512c4452b'
system
"alien -t -c Brackets.Release.
#{
version
}
.64-bit.deb"
system
"tar xvf brackets-
#{
version
}
.tgz"
when
'i686'
system
"wget https://github.com/adobe/brackets/releases/download/release-
#{
version
}
/Brackets.Release.
#{
version
}
.32-bit.deb"
abort
'Checksum mismatch. :/ Try again.'
.
lightred
unless
Digest
::
SHA256
.
hexdigest
(
File
.
read
(
"Brackets.Release.
#{
version
}
.32-bit.deb"
)
)
==
'6ef1567b75a197236b3d35785afa744752a28b74cfa51b93b7b78d0a50acbfd4'
system
"alien -t -c Brackets.Release.
#{
version
}
.32-bit.deb"
system
"tar xvf brackets-
#{
version
}
.tgz"
end
end
def
self
.
install
case
ARCH
when
'i686'
,
'x86_64'
FileUtils
.
mkdir_p
"
#{
CREW_DEST_PREFIX
}
/bin"
FileUtils
.
mkdir_p
"
#{
CREW_DEST_HOME
}
/.config/Brackets"
FileUtils
.
mv
'usr/share'
,
"
#{
CREW_DEST_PREFIX
}
"
FileUtils
.
mv
'opt/brackets'
,
"
#{
CREW_DEST_PREFIX
}
/share"
FileUtils
.
ln_s
"
#{
CREW_PREFIX
}
/share/brackets/Brackets"
,
"
#{
CREW_DEST_PREFIX
}
/bin/brackets"
system
"touch
#{
CREW_DEST_HOME
}
/.config/Brackets/window.ini"
else
abort
"Architecture
#{
ARCH
}
not supported."
.
lightred
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment