mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
34 lines
1.1 KiB
Ruby
34 lines
1.1 KiB
Ruby
require 'package'
|
|
|
|
class Nushell < Package
|
|
description 'A new type of shell'
|
|
homepage 'https://www.nushell.sh/'
|
|
version '0.95.0'
|
|
license 'MIT'
|
|
compatibility 'x86_64 aarch64 armv7l'
|
|
min_glibc '2.28'
|
|
source_url({
|
|
aarch64: "https://github.com/nushell/nushell/releases/download/#{version}/nu-#{version}-armv7-unknown-linux-gnueabihf.tar.gz",
|
|
armv7l: "https://github.com/nushell/nushell/releases/download/#{version}/nu-#{version}-armv7-unknown-linux-gnueabihf.tar.gz",
|
|
x86_64: "https://github.com/nushell/nushell/releases/download/#{version}/nu-#{version}-x86_64-unknown-linux-gnu.tar.gz"
|
|
})
|
|
source_sha256({
|
|
aarch64: '95ac0e7d4def3330d9bbc8a2957491c909e17406d0ac8a565685bb93c1d214fa',
|
|
armv7l: '95ac0e7d4def3330d9bbc8a2957491c909e17406d0ac8a565685bb93c1d214fa',
|
|
x86_64: 'e1d01859e0bc86093fc49a4ece37fd92573baebeea383669feca942f67672a20'
|
|
})
|
|
|
|
no_compile_needed
|
|
no_shrink
|
|
|
|
def self.install
|
|
Dir['nu*'].each do |bin|
|
|
FileUtils.install bin, "#{CREW_DEST_PREFIX}/bin/#{bin}", mode: 0o755
|
|
end
|
|
end
|
|
|
|
def self.postinstall
|
|
puts "\nType 'nu' to get started.\n".lightblue
|
|
end
|
|
end
|