diff --git a/.SRCINFO b/.SRCINFO index 3d89319..946b842 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,15 +1,15 @@ pkgbase = powershell-editor-services - pkgdesc = A common platform for PowerShell development support in any editor or application! - pkgver = 3.13.0 + pkgdesc = A common platform for PowerShell development support in any editor or application + pkgver = 3.18.1 pkgrel = 1 url = https://github.com/PowerShell/PowerShellEditorServices install = powershell-editor-services.install arch = x86_64 depends = powershell - noextract = PowerShellEditorServices-3.13.0.zip - source = PowerShellEditorServices-3.13.0.zip::https://github.com/PowerShell/PowerShellEditorServices/releases/download/v3.13.0/PowerShellEditorServices.zip - source = LICENSE-3.13.0::https://raw.githubusercontent.com/PowerShell/PowerShellEditorServices/v3.13.0/LICENSE - sha256sums = c7f9e2b6faaa93e9198882844a7ac0ef6369d134b49db009cf29f7dfb5c2cc3e + noextract = PowerShellEditorServices-3.18.1.zip + source = PowerShellEditorServices-3.18.1.zip::https://github.com/PowerShell/PowerShellEditorServices/releases/download/v3.18.1/PowerShellEditorServices.zip + source = LICENSE-3.18.1::https://github.com/PowerShell/PowerShellEditorServices/raw/v3.18.1/LICENSE + sha256sums = a3105b77da3ab88364e124e3d96348dead5d1299013523b03fa8855f7c23100a sha256sums = 99bc3308d3b5f2018c5d7af9239548c6853a01f08db0a1d9247d16be647c5658 pkgname = powershell-editor-services diff --git a/PKGBUILD b/PKGBUILD index 3b11be9..d4998a8 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,31 +1,38 @@ -# Maintainer: clanger +# Maintainer: +# Contributor: clanger # Contributor: Aaron Coach -pkgname=powershell-editor-services -pkgver=3.13.0 +_pkgname="powershell-editor-services" +pkgname="$_pkgname" +pkgver=3.18.1 pkgrel=1 - -pkgdesc='A common platform for PowerShell development support in any editor or application!' -url='https://github.com/PowerShell/PowerShellEditorServices' +pkgdesc='A common platform for PowerShell development support in any editor or application' +url="https://github.com/PowerShell/PowerShellEditorServices" arch=('x86_64') licence=('MIT') + depends=('powershell') -install="$pkgname".install +install="$_pkgname.install" -source=("PowerShellEditorServices-$pkgver.zip::https://github.com/PowerShell/PowerShellEditorServices/releases/download/v$pkgver/PowerShellEditorServices.zip" - "LICENSE-$pkgver::https://raw.githubusercontent.com/PowerShell/PowerShellEditorServices/v$pkgver/LICENSE") +_pkgsrc="PowerShellEditorServices-$pkgver" +_pkgext="zip" -noextract=("PowerShellEditorServices-$pkgver.zip") +noextract=("$_pkgsrc.$_pkgext") -sha256sums=('c7f9e2b6faaa93e9198882844a7ac0ef6369d134b49db009cf29f7dfb5c2cc3e' - '99bc3308d3b5f2018c5d7af9239548c6853a01f08db0a1d9247d16be647c5658') +source=( + "$_pkgsrc.$_pkgext"::"$url/releases/download/v$pkgver/PowerShellEditorServices.$_pkgext" + "LICENSE-$pkgver"::"$url/raw/v$pkgver/LICENSE" +) + +sha256sums=( + 'a3105b77da3ab88364e124e3d96348dead5d1299013523b03fa8855f7c23100a' + '99bc3308d3b5f2018c5d7af9239548c6853a01f08db0a1d9247d16be647c5658' +) package() { - mkdir -p "$pkgdir"/opt/powershell-editor-services - bsdtar -x -C "$pkgdir"/opt/powershell-editor-services \ - -f "$srcdir"/PowerShellEditorServices-$pkgver.zip + mkdir -p "$pkgdir/opt/$_pkgname" + bsdtar -x -C "$pkgdir/opt/$_pkgname" -f "$srcdir/$_pkgsrc.$_pkgext" - install -Dm0644 LICENSE-"$pkgver" \ - "$pkgdir"/usr/share/licences/powershell-editor-services/LICENSE + install -Dm644 "LICENSE-$pkgver" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }