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
nexedi
chromebrew
Commits
1f46ac9e
Commit
1f46ac9e
authored
May 10, 2018
by
Ed Reel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pre-built binaries for heroku, nano and thefuck
Add pre-built binaries
parent
2ece4c6f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
10 deletions
+54
-10
packages/heroku.rb
packages/heroku.rb
+13
-0
packages/nano.rb
packages/nano.rb
+21
-8
packages/thefuck.rb
packages/thefuck.rb
+20
-2
No files found.
packages/heroku.rb
View file @
1f46ac9e
...
...
@@ -7,6 +7,19 @@ class Heroku < Package
source_url
'https://github.com/heroku/cli/archive/v7.0.35.tar.gz'
source_sha256
'62216b82c2d32cc2e524e26642722904d24df74af4194bcf94e186d7c3038033'
binary_url
({
aarch64:
'https://dl.bintray.com/chromebrew/chromebrew/heroku-7.0.35-chromeos-armv7l.tar.xz'
,
armv7l:
'https://dl.bintray.com/chromebrew/chromebrew/heroku-7.0.35-chromeos-armv7l.tar.xz'
,
i686:
'https://dl.bintray.com/chromebrew/chromebrew/heroku-7.0.35-chromeos-i686.tar.xz'
,
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/heroku-7.0.35-chromeos-x86_64.tar.xz'
,
})
binary_sha256
({
aarch64:
'bf4cef5f266fcafd2fd00f5d616f2835407508380630ee9ca2d7c7de7cc408bd'
,
armv7l:
'bf4cef5f266fcafd2fd00f5d616f2835407508380630ee9ca2d7c7de7cc408bd'
,
i686:
'3a62da231a09acb567a8e52123f7bd49e8a33d15d7ce2cab6be75d4de64b8751'
,
x86_64:
'42e37b3c493e4e3667d2d7b188c0588a5edc81806b9401507cd642f1580c02e9'
,
})
depends_on
'yarn'
def
self
.
build
...
...
packages/nano.rb
View file @
1f46ac9e
...
...
@@ -7,7 +7,19 @@ class Nano < Package
source_url
'https://www.nano-editor.org/dist/v2.9/nano-2.9.5.tar.xz'
source_sha256
'7b8d181cb57f42fa86a380bb9ad46abab859b60383607f731b65a9077f4b4e19'
depends_on
'ncurses'
binary_url
({
aarch64:
'https://dl.bintray.com/chromebrew/chromebrew/nano-2.9.5-chromeos-armv7l.tar.xz'
,
armv7l:
'https://dl.bintray.com/chromebrew/chromebrew/nano-2.9.5-chromeos-armv7l.tar.xz'
,
i686:
'https://dl.bintray.com/chromebrew/chromebrew/nano-2.9.5-chromeos-i686.tar.xz'
,
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/nano-2.9.5-chromeos-x86_64.tar.xz'
,
})
binary_sha256
({
aarch64:
'127c08b4f613b9beb34f73334b201345eaa6375951da4a9f672fa1f710a519a3'
,
armv7l:
'127c08b4f613b9beb34f73334b201345eaa6375951da4a9f672fa1f710a519a3'
,
i686:
'fd5962055dffc82f039023f7f454873abe76bfa53f51ce87d2e648f813cb8862'
,
x86_64:
'd8d56d3e5cc9e5db5ac312454231886dd327fecc122fb9d91231427eaa294cd8'
,
})
depends_on
'filecmd'
def
self
.
build
...
...
@@ -19,14 +31,15 @@ class Nano < Package
def
self
.
install
system
'make'
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
'install-strip'
system
"mkdir -pv
#{
CREW_DEST_DIR
}
/home/chronos/user"
system
"touch
#{
CREW_DEST_DIR
}
/home/chronos/user/.nanorc"
system
"mkdir -pv
#{
CREW_DEST_DIR
}
$HOME"
system
"touch
#{
CREW_DEST_DIR
}
$HOME/.nanorc"
end
def
self
.
postinstall
puts
"Personal configuration file is located in /home/chronos/user/.nanorc"
.
lightgreen
open
(
'/home/chronos/user/.nanorc'
,
'w'
)
{
|
f
|
puts
puts
"Personal configuration file is located in $HOME/.nanorc"
.
lightblue
puts
open
(
"
#{
ENV
[
'HOME'
]
}
/.nanorc"
,
'w'
)
{
|
f
|
f
<<
"set autoindent
\n
"
f
<<
"set constantshow
\n
"
f
<<
"set fill 72
\n
"
...
...
@@ -40,6 +53,6 @@ class Nano < Package
f
<<
"set regexp
\n
"
f
<<
"set smooth
\n
"
f
<<
"set suspend
\n
"
}
}
end
end
packages/thefuck.rb
View file @
1f46ac9e
require
'package'
class
t
hefuck
<
Package
class
T
hefuck
<
Package
description
'Magnificent app which corrects your previous console command.'
homepage
'https://github.com/nvbn/thefuck'
version
'3.26'
source_url
'https://raw.githubusercontent.com/nvbn/thefuck/3.26/README.md'
source_sha256
'105e10e37c4c1430fe6bc3a48c9508254048721825ae14856d713de61c95bc66'
binary_url
({
aarch64:
'https://dl.bintray.com/chromebrew/chromebrew/thefuck-3.26-chromeos-armv7l.tar.xz'
,
armv7l:
'https://dl.bintray.com/chromebrew/chromebrew/thefuck-3.26-chromeos-armv7l.tar.xz'
,
i686:
'https://dl.bintray.com/chromebrew/chromebrew/thefuck-3.26-chromeos-i686.tar.xz'
,
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/thefuck-3.26-chromeos-x86_64.tar.xz'
,
})
binary_sha256
({
aarch64:
'3ed01911cf4191dcc4b4772d2c37c27e1d852e4ae05936a542c78ea893e6b243'
,
armv7l:
'3ed01911cf4191dcc4b4772d2c37c27e1d852e4ae05936a542c78ea893e6b243'
,
i686:
'00d031f9cd4cf33b52b7906e9cfddc1c57b21bb4aba201e1e326fd5be4e85687'
,
x86_64:
'abef43017782a8a921cb73b2c32c4b5eaab6ec5412b136aeea2a2ad9ea960de0'
,
})
depends_on
'python3'
def
self
.
install
system
"pip3 install thefuck --root
#{
CREW_DEST_DIR
}
--prefix
#{
CREW_PREFIX
}
"
system
"fuck && fuck"
end
def
self
.
postinstall
system
'fuck && fuck'
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