Advertisement
Guest User

powershell-bin 7.0.0

a guest
Mar 11th, 2020
567
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.76 KB | None | 0 0
  1. pkgname=powershell-bin
  2. pkgver=7.0.0
  3. pkgrel=1
  4. pkgdesc='A cross-platform automation and configuration tool/framework (binary package)'
  5. arch=('x86_64')
  6. url='https://github.com/Powershell/Powershell'
  7. depends=('libunwind' 'icu' 'openssl-1.0')
  8. provides=('powershell')
  9. conflicts=('powershell')
  10. options=(staticlibs !strip)
  11. install=powershell.install
  12. source=("https://github.com/PowerShell/PowerShell/releases/download/v${pkgver}/powershell_${pkgver}-1.ubuntu.18.04_amd64.deb")
  13. sha256sums=('a28c95b376e6dd7ef0bf523b6bd329485948a53e27fd2e8b3dded6981471214c')
  14.  
  15. package() {
  16.   bsdtar xf data.tar.gz
  17.  
  18.   mv usr "${pkgdir}"
  19.   mv opt "${pkgdir}"
  20.  
  21.   cd "${pkgdir}"
  22.   cp -r usr/local/share usr
  23.   rm -rf usr/local
  24.  
  25.   chmod 755 "opt/microsoft/powershell/${pkgver%%.*}/pwsh"
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement