diff options
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 3 | ||||
-rw-r--r-- | powershell.install | 11 |
3 files changed, 15 insertions, 2 deletions
@@ -1,8 +1,9 @@ pkgbase = powershell pkgdesc = A cross-platform automation and configuration tool/framework (latest release) pkgver = 6.0.0.beta.3 - pkgrel = 1 + pkgrel = 2 url = https://github.com/PowerShell/PowerShell + install = powershell.install arch = x86_64 license = MIT makedepends = git @@ -3,7 +3,7 @@ pkgname=powershell _pkgver=6.0.0-beta.3 pkgver=${_pkgver/-/.} -pkgrel=1 +pkgrel=2 pkgdesc="A cross-platform automation and configuration tool/framework (latest release)" arch=('x86_64') url="https://github.com/PowerShell/PowerShell" @@ -19,6 +19,7 @@ md5sums=('SKIP' 'SKIP' 'SKIP' 'f5841baa62b1322c07f9394940cec818') +install=powershell.install prepare() { cd $pkgname diff --git a/powershell.install b/powershell.install new file mode 100644 index 000000000000..53cc793aab94 --- /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 +} |