Commit 1f46ac9e authored by Ed Reel's avatar Ed Reel

Add pre-built binaries for heroku, nano and thefuck

Add pre-built binaries
parent 2ece4c6f
......@@ -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
......
......@@ -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"
......
require 'package'
class thefuck < Package
class Thefuck < 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
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