diff options
author | Carl Smedstad | 2024-03-10 12:07:56 +0100 |
---|---|---|
committer | Carl Smedstad | 2024-03-10 12:10:26 +0100 |
commit | d1d5eb12cebc8edffb1ffc87fdcacea651af552a (patch) | |
tree | 3144224780c7187c90c430d2cd1b77b1e1131a19 | |
parent | d0d65e31b993e80736885657e0c3e64dc0a1ac29 (diff) | |
download | aur-powershell.tar.gz |
upgpkg: 7.4.1-4: Add pkgver() function
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 9 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = powershell pkgdesc = A cross-platform automation and configuration tool/framework (latest release) pkgver = 7.4.1 - pkgrel = 3 + pkgrel = 4 url = https://github.com/PowerShell/PowerShell install = powershell.install arch = x86_64 @@ -7,7 +7,7 @@ pkgname=powershell _pkgname=PowerShell pkgver=7.4.1 _commit=a4348e51b87075cb8cd8047830e6575e4f91f3cf -pkgrel=3 +pkgrel=4 pkgdesc="A cross-platform automation and configuration tool/framework (latest release)" arch=(x86_64) url="https://github.com/PowerShell/PowerShell" @@ -43,6 +43,12 @@ sha256sums=( _archive="$_pkgname" +pkgver() { + cd "$_archive" + + git describe --tags | sed 's/^v//' +} + prepare() { cd "$_archive" @@ -211,7 +217,7 @@ package() { local pkgnum=${pkgver:0:1} install -dm755 "$pkgdir/usr/lib/$pkgname-$pkgnum" - cp --archive -t "$pkgdir/usr/lib/$pkgname-$pkgnum" lib/* + cp -a -t "$pkgdir/usr/lib/$pkgname-$pkgnum" lib/* install -dm755 "$pkgdir/usr/bin" ln -s "/usr/lib/$pkgname-$pkgnum/pwsh" "$pkgdir/usr/bin/pwsh" |