diff options
author | Kyle Sferrazza | 2017-08-21 21:25:59 -0400 |
---|---|---|
committer | Kyle Sferrazza | 2017-08-21 21:25:59 -0400 |
commit | 9d658bd34e8dbb95557091ae517b92509bdffdd1 (patch) | |
tree | 8e700dfccc2b789df7d28cb3b1b2f22f87461f83 /PKGBUILD | |
parent | cc5b2a93520c36c05489385359d9159c32c7ad59 (diff) | |
download | aur-9d658bd34e8dbb95557091ae517b92509bdffdd1.tar.gz |
now properly builds powershell without the git version of dotnet, and adds powershell to /etc/shells
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 12 insertions, 18 deletions
@@ -2,24 +2,22 @@ pkgname='powershell-git' _pkgname='powershell' -pkgver=6.0.0.beta.2.14.gf04d2fd2 +pkgver=6.0.0.beta.5.78.gcdbbb7a4b pkgrel=1 pkgdesc="A cross-platform automation and configuration tool/framework (git version)" arch=('x86_64') url="https://github.com/PowerShell/PowerShell" license=('MIT') -makedepends=('git' 'cmake' 'proot' 'dotnet-cli-git') +makedepends=('git' 'cmake' 'dotnet-sdk-2.0') depends=('icu') provides=('powershell') -conflicts=('powershell') source=($_pkgname::'git+https://github.com/PowerShell/PowerShell.git' 'pester::git+https://github.com/PowerShell/psl-pester.git#branch=develop' - 'googletest::git+https://github.com/google/googletest.git' - 'os-release') + 'googletest::git+https://github.com/google/googletest.git') md5sums=('SKIP' 'SKIP' - 'SKIP' - 'f5841baa62b1322c07f9394940cec818') + 'SKIP') +install=powershell.install pkgver() { cd $_pkgname @@ -33,9 +31,9 @@ prepare() { git config submodule.src/Modules/Pester.url "$srcdir"/pester git config submodule.src/libpsl-native/test/googletest.url "$srcdir"/googletest git submodule update - - # Starting off clean. git clean -dfx + + sed -i -e 's/hash powershell/\/bin\/false/g' build.sh } build() { @@ -43,18 +41,14 @@ build() { pushd src/libpsl-native cmake . - make + make -j popd - PROOT_NO_SECCOMP=1 \ - proot -b "$srcdir"/os-release:/etc/os-release "$srcdir"/powershell/build.sh + "$srcdir"/powershell/build.sh } check() { cd $_pkgname/src/libpsl-native - - PROOT_NO_SECCOMP=1 \ - proot -b "$srcdir"/os-release:/etc/os-release \ make test } @@ -63,12 +57,12 @@ package() { cd $_pkgname/src/powershell-unix mkdir -p "$pkgdir"/usr/lib/$_pkgname - cp -a bin/Linux/netcoreapp*/ubuntu.16.04-x64 "$pkgdir"/usr/lib/$_pkgname - chmod 755 "$pkgdir"/usr/lib/$_pkgname/ubuntu.16.04-x64/$_pkgname + cp -a bin/Linux/netcoreapp*/linux-x64 "$pkgdir"/usr/lib/$_pkgname + chmod 755 "$pkgdir"/usr/lib/$_pkgname/linux-x64/$_pkgname mkdir -p "$pkgdir"/usr/share/licenses/$_pkgname cp ../../LICENSE.txt "$pkgdir"/usr/share/licenses/$_pkgname/LICENSE mkdir -p "$pkgdir"/usr/bin - ln -s /usr/lib/$_pkgname/ubuntu.16.04-x64/$_pkgname "$pkgdir"/usr/bin/powershell + ln -s /usr/lib/$_pkgname/linux-x64/$_pkgname "$pkgdir"/usr/bin/powershell } |