mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
* Update `xclock` `twm` `xterm` `powershell` * Update `skype` and `screenfetch` Fixes #4564 * Removed /dev/null * New Package: bash * Use https and mirror * Use #{CREW_OPTIONS} * Update xterm.rb * Add `bash` to `buildessential` as a dependency * Replace system default bash * Update `mpfr` * #{CREW_VERSION} don't work on cloudready * Update bash.rb * Update `wine` * Update mc * Update opera.rb * Update nano.rb * Update gsettings_desktop_schemas.rb * Update gsettings_desktop_schemas.rb, use meson * Fix syntax error * Add dependencies to `wine` * Remove bash from buildessential.rb * Update screenfetch.rb * Update powershell.rb * Update mpfr.rb * Remove dependencies duplicate with core packages * Update twm, use #{CREW_OPTIONS} * Update xclock, use #{CREW_OPTIONS} * Add --prefix * Add ffmpeg dependency * Delete mpfr.rb * Left mpfr.rb untouch * Add #{CREW_OPTIONS}, tested on x86_64 * Update Opera * fix CREW_OPTIONS * Update wine.rb * Update bash.rb * Remove core dependencies
35 lines
1.3 KiB
Ruby
35 lines
1.3 KiB
Ruby
require 'package'
|
|
|
|
class Powershell < Package
|
|
description 'Powershell is a cross-platform, task-based command-line shell and scripting language that helps rapidly automate tasks that manage operating systems and processes'
|
|
homepage 'https://docs.microsoft.com/en-us/powershell/'
|
|
version '7.0.3'
|
|
compatibility 'aarch64,armv7l,x86_64'
|
|
case ARCH
|
|
when 'armv7l', 'aarch64'
|
|
source_url 'https://github.com/PowerShell/PowerShell/releases/download/v7.0.3/powershell-7.0.3-linux-arm32.tar.gz'
|
|
source_sha256 'fe6da9f90fd5026c4ab446a31f565144342a8d507a73d428305bc36c1ad92644'
|
|
when 'x86_64'
|
|
source_url 'https://github.com/PowerShell/PowerShell/releases/download/v7.0.3/powershell-7.0.3-linux-x64.tar.gz'
|
|
source_sha256 'a9c023940c77a96a9f5135309e44c93ed627983bb1a66ecf5beb42bbba54ead6'
|
|
end
|
|
|
|
case ARCH
|
|
when 'aarch64', 'armv7l', 'x86_64'
|
|
depends_on 'xdg_base'
|
|
end
|
|
|
|
def self.install
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/powershell"
|
|
FileUtils.cp_r '.', "#{CREW_DEST_PREFIX}/share/powershell"
|
|
FileUtils.ln_s "#{CREW_PREFIX}/share/powershell/pwsh", "#{CREW_DEST_PREFIX}/bin/pwsh"
|
|
end
|
|
|
|
def self.postinstall
|
|
puts
|
|
puts "To get started, execute 'pwsh'".lightblue
|
|
puts
|
|
end
|
|
end
|