summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Sferrazza2017-10-26 13:48:18 -0400
committerKyle Sferrazza2017-10-26 13:48:18 -0400
commitb41f361da1dd40a359c1a68ad64cd2cf977b619e (patch)
treeddc60b34d20126f37bedc1af9e0307eae408b4b9
parent335f5ddb54a7aa962b731b20d5f30639de230e3b (diff)
downloadaur-b41f361da1dd40a359c1a68ad64cd2cf977b619e.tar.gz
beta 9
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD19
-rw-r--r--powershell.install4
3 files changed, 11 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b73e3f9028f..ce04f3b8edf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = powershell-bin
pkgdesc = A cross-platform automation and configuration tool/framework (binary package)
- pkgver = 6.0.0.beta.8
+ pkgver = 6.0.0.beta.9
pkgrel = 1
url = https://github.com/Powershell/Powershell
install = powershell.install
@@ -10,8 +10,8 @@ pkgbase = powershell-bin
conflicts = powershell
options = staticlibs
options = !strip
- source = https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.8/powershell_6.0.0-beta.8-1.ubuntu.17.04_amd64.deb
- md5sums = dd698384f5a0f9cd3ce7dd8dd85cbb92
+ source = https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.9/powershell_6.0.0-beta.9-1.ubuntu.17.04_amd64.deb
+ md5sums = 44ca09fedfb71f3ff3a5e11d8effdb8d
pkgname = powershell-bin
diff --git a/PKGBUILD b/PKGBUILD
index b55e24e6aae..dd6a191d75f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,18 +2,19 @@
# Contributor: Tomasz Hamerla <tomasz.hamerla@outlook.com>
pkgname=powershell-bin
-_pkgver=6.0.0-beta.8
+binaryname=pwsh
+_pkgver=6.0.0-beta.9
pkgver=${_pkgver/-/.}
pkgrel=1
-pkgdesc="A cross-platform automation and configuration tool/framework (binary package)"
+pkgdesc='A cross-platform automation and configuration tool/framework (binary package)'
arch=('x86_64')
-url="https://github.com/Powershell/Powershell"
+url='https://github.com/Powershell/Powershell'
license=('MIT')
provides=('powershell')
conflicts=('powershell')
options=(staticlibs !strip)
install=powershell.install
-md5sums=('dd698384f5a0f9cd3ce7dd8dd85cbb92')
+md5sums=('44ca09fedfb71f3ff3a5e11d8effdb8d')
source=("https://github.com/PowerShell/PowerShell/releases/download/v${_pkgver}/powershell_${_pkgver}-1.ubuntu.17.04_amd64.deb")
package() {
@@ -22,17 +23,9 @@ package() {
mv usr "${pkgdir}"
mv opt "${pkgdir}"
- # Fix man path
cd "${pkgdir}"
cp -r usr/local/share usr
rm -rf usr/local
- # Force powershell to load appropriate libs
- cd usr/bin
- mv powershell lnbin.powershell
- cat > powershell <<EOF
-#!/bin/sh
-LD_PRELOAD='/usr/lib/libcurl-openssl-1.0.so /usr/lib/openssl-1.0-compat/libssl.so /usr/lib/openssl-1.0-compat/libcrypto.so' exec lnbin.powershell "\$@" 2>/dev/null
-EOF
- chmod 755 powershell
+ chmod 755 usr/bin/$binaryname
}
diff --git a/powershell.install b/powershell.install
index 53cc793aab9..d337b39409b 100644
--- a/powershell.install
+++ b/powershell.install
@@ -1,5 +1,5 @@
post_install() {
- grep -qe '^/usr/bin/powershell$' etc/shells || echo '/usr/bin/powershell' >> etc/shells
+ grep -qe '^/usr/bin/pwsh$' etc/shells || echo '/usr/bin/pwsh' >> etc/shells
}
post_upgrade() {
@@ -7,5 +7,5 @@ post_upgrade() {
}
pre_remove() {
- sed -ri '\|^/usr/bin/powershell$|d' etc/shells
+ sed -ri '\|^/usr/bin/pwsh$|d' etc/shells
}