community/powershell: upgrade to 7.3.5

This commit is contained in:
Antoine Martin 2023-07-02 12:50:07 -04:00
parent e2226da9c2
commit e6d1411c4c
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -1,10 +1,10 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=powershell
pkgver=7.3.4
pkgver=7.3.5
pkgrel=0
pkgdesc="A cross-platform automation and configuration tool/framework"
arch="all !x86 !armhf !riscv64" # blocked by dotnet runtime
arch="x86_64 aarch64 armv7" # blocked by dotnet runtime
url="https://github.com/PowerShell/PowerShell"
license="MIT"
depends="
@ -16,12 +16,19 @@ makedepends="
git
"
source="
$pkgname-$pkgver.tar.gz::https://github.com/PowerShell/PowerShell/archive/refs/tags/v$pkgver.tar.gz
$pkgname-$pkgver.tar.gz::https://github.com/PowerShell/PowerShell/archive/v$pkgver.tar.gz
dependency-gatherer.targets
fix-filesystem-test.patch
update-sdk-test-ppc64le.patch
"
builddir="$srcdir"/PowerShell-$pkgver
# if true, then within pipeline environment, in which case send logs there
# to be scooped
if [ -d "$APORTSDIR/logs" ]; then
_logdir="$APORTSDIR"/logs
else
_logdir="$srcdir"/logs
fi
# mono-flavored runtime does not support crossgen2
case $CARCH in
@ -38,6 +45,7 @@ prepare() {
git commit -m 'Initial'
git tag -a "v$pkgver" -m "Initial"
rm "global.json"
mkdir -p "$_logdir"
}
build() {
@ -72,20 +80,26 @@ build() {
# Build powershell core
cd "$builddir"
dotnet build-server shutdown
dotnet publish --configuration Linux "src/powershell-unix/" \
--output bin \
--no-self-contained \
--runtime "$(dotnet --info | awk '$1=="RID:"{print $2}')" \
-p:PublishReadyToRun=$_use_crossgen2
-p:PublishReadyToRun=$_use_crossgen2 \
/bl:"$_logdir"/powershell-build.binlog \
/consoleLoggerParameters:ShowTimestamp
}
check() {
msg "Checking $pkgname"
cd "$builddir"/test/xUnit
dotnet build-server shutdown
dotnet test \
-c Release \
--runtime "$(dotnet --info | awk '$1=="RID:"{print $2}')" \
-p:PublishReadyToRun=$_use_crossgen2
-p:PublishReadyToRun=$_use_crossgen2 \
/bl:"$_logdir"/powershell-check.binlog \
/consoleLoggerParameters:ShowTimestamp
}
package() {
@ -108,7 +122,7 @@ package() {
ln -s "/usr/lib/$pkgname/pwsh" "$pkgdir"/usr/bin/pwsh
}
sha512sums="
4a8933311950edb5c40925aeff8000177c5c4d17ef60612993a60166d65ca069dd42eae092e1fc6f40b3b1673fbb5e392e57568996af95a096d672b3eeab3bc0 powershell-7.3.4.tar.gz
59d3c5c112086e5ad45b556db65e74254ec4d0eeb5552e70a4d9fa1b020d2feabce2c902f85af7a3a30acdddf504adc47119879efec71ee552301bca844f2953 powershell-7.3.5.tar.gz
e9c4aeebd4fead1542b2c48c70134efcdb6c573273d8d05b1f8a2ece070e26899876b30264749992beac3044059716ca8c07b3bf970a419e525057c422f843c6 dependency-gatherer.targets
0e7550d8b702eeb9ebbd42100b32cbf7a0be676c5922cd6ee03ecdd3ba11d20d42a468f73ee428c6c92c8b7b18f9b022591a368191c2a358034ba4d7e78d2b84 fix-filesystem-test.patch
1aa10d32a37da0e7fd9d587105833d0a7ed9b71701018259d3efa2be90977808eb54a7d3e2d8bf03b693eeeac469f2e9ee88aa93006b7a2c22ae4720a8f62561 update-sdk-test-ppc64le.patch