summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Sferrazza2017-07-23 17:33:58 -0400
committerKyle Sferrazza2017-07-23 17:33:58 -0400
commit7cbe3013a0641cf907963edde828a7702574dbed (patch)
tree10350aba378e2c737672d09aa38156c78383e75f
parent5e96f8998aa127c203991d07132f39886a199a20 (diff)
downloadaur-7cbe3013a0641cf907963edde828a7702574dbed.tar.gz
Adopted and updated to beta 4
-rw-r--r--.SRCINFO8
-rw-r--r--.gitignore8
-rw-r--r--PKGBUILD10
-rw-r--r--powershell.install11
4 files changed, 25 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 44bb77b9134..93f0a455356 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,14 @@
pkgbase = powershell-bin
pkgdesc = A cross-platform automation and configuration tool/framework (binary package)
- pkgver = 6.0.0.alpha.18
+ pkgver = 6.0.0.beta.4
pkgrel = 1
url = https://github.com/Powershell/Powershell
+ install = powershell.install
arch = x86_64
license = MIT
makedepends = rsync
depends = libunwind
depends = icu55
- depends = libopenssl-1.0-compat
depends = libcurl-openssl-1.0
provides = powershell
provides = powershell-bin
@@ -17,8 +17,8 @@ pkgbase = powershell-bin
conflicts = powershell-git
options = staticlibs
options = !strip
- source = https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.18/powershell_6.0.0-alpha.18-1ubuntu1.16.04.1_amd64.deb
- md5sums = 7b9b04b002f66c14c4ae70b5d1b1a9a6
+ source = https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/powershell_6.0.0-beta.4-1ubuntu1.16.04.1_amd64.deb
+ md5sums = 95dcb4c3c18993e05ae35b2fa7001d87
pkgname = powershell-bin
diff --git a/.gitignore b/.gitignore
index c6e8daf6bfd..f26b4996f36 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
-*
-!PKGBUILD
-!.SRCINFO
-!.gitignore \ No newline at end of file
+powershell*.xz
+powershell*.deb
+pkg
+src
diff --git a/PKGBUILD b/PKGBUILD
index 7078a04a7bb..4028058589c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,8 @@
-# Maintainer: Tomasz Hamerla <tomasz.hamerla@outlook.com>
+# Maintainer: Kyle Sferrazza <kyle.sferrazza@gmail.com>
+# Contributor: Tomasz Hamerla <tomasz.hamerla@outlook.com>
pkgname=powershell-bin
-_pkgver=6.0.0-alpha.18
+_pkgver=6.0.0-beta.4
pkgver=${_pkgver/-/.}
pkgrel=1
pkgdesc="A cross-platform automation and configuration tool/framework (binary package)"
@@ -10,11 +11,12 @@ url="https://github.com/Powershell/Powershell"
license=('MIT')
provides=('powershell' 'powershell-bin' 'powershell-git')
options=(staticlibs !strip)
-depends=('libunwind' 'icu55' 'libopenssl-1.0-compat' 'libcurl-openssl-1.0')
+depends=('libunwind' 'icu55' 'libcurl-openssl-1.0')
makedepends=('rsync')
conflicts=('powershell' 'powershell-git')
+install=powershell.install
-md5sums=('7b9b04b002f66c14c4ae70b5d1b1a9a6')
+md5sums=('95dcb4c3c18993e05ae35b2fa7001d87')
source=("https://github.com/PowerShell/PowerShell/releases/download/v${_pkgver}/powershell_${_pkgver}-1ubuntu1.16.04.1_amd64.deb")
diff --git a/powershell.install b/powershell.install
new file mode 100644
index 00000000000..53cc793aab9
--- /dev/null
+++ b/powershell.install
@@ -0,0 +1,11 @@
+post_install() {
+ grep -qe '^/usr/bin/powershell$' etc/shells || echo '/usr/bin/powershell' >> etc/shells
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ sed -ri '\|^/usr/bin/powershell$|d' etc/shells
+}