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
6c8e3ba4
Commit
6c8e3ba4
authored
Apr 07, 2020
by
Ed Reel
Committed by
GitHub
Apr 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add powershell package (#3994)
Add xdg_base dependency
parent
9d4fb25a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
packages/powershell.rb
packages/powershell.rb
+30
-0
No files found.
packages/powershell.rb
0 → 100644
View file @
6c8e3ba4
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.0'
case
ARCH
when
'aarch64'
,
'armv7l'
source_url
'https://github.com/PowerShell/PowerShell/releases/download/v7.0.0/powershell-7.0.0-linux-arm32.tar.gz'
source_sha256
'cbb6acbb40f73ccf83920f4729dc86ebf3566bb9a01ca68e0698d33fdbe6d7b0'
when
'x86_64'
source_url
'https://github.com/PowerShell/PowerShell/releases/download/v7.0.0/powershell-7.0.0-linux-x64.tar.gz'
source_sha256
'3e80a662a5defb283185961330c4a44d5d5179f9eb2a2ee74ac7e1d3caf16b2c'
end
depends_on
'xdg_base'
def
self
.
install
FileUtils
.
mkdir_p
"
#{
CREW_DEST_PREFIX
}
/bin"
FileUtils
.
mkdir_p
"
#{
CREW_DEST_PREFIX
}
/share/powershell"
FileUtils
.
cp_r
Dir
.
glob
(
'.'
),
"
#{
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
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