Skip to content

Commit 782152e

Browse files
committed
Update PKGBUILD for version 3.2.0 with new dependencies, build optimizations, and fixes:
- Bump version to `3.2.0`. - Add `!strip` to `options`. - Correct `pkgver` function removal and integrate commit hash/date into versioning. - Fix typo in `-p:SelfContained` build argument. - Introduce `-p:InformationalVersion` for improved version metadata. - Streamline icon generation and build scripts.
1 parent 8cfa26a commit 782152e

1 file changed

Lines changed: 6 additions & 15 deletions

File tree

openssh-gui-git/PKGBUILD

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
pkgname=openssh-gui-git
22
_pkgname=OpenSSH-GUI
3-
pkgver=2.2.1.r0.g845610b
3+
pkgver=3.2.0.20260612.a1b2c3d
44
pkgrel=1
55
pkgdesc="A GUI for OpenSSH configuration and management (Sourcepackage)"
66
arch=('x86_64')
77
url="https://github.com/frequency403/OpenSSH-GUI"
88
license=('MIT')
9+
options=('!strip')
910

1011
depends=('icu' 'openssl' 'zlib' 'krb5' 'libx11')
1112
makedepends=('git' 'dotnet-sdk-10.0' 'librsvg')
@@ -16,28 +17,18 @@ conflicts=('openssh-gui' 'openssh-gui-bin' 'openssh-gui-nightly')
1617
source=("git+${url}.git#branch=development")
1718
sha256sums=('SKIP')
1819

19-
pkgver() {
20-
cd "${srcdir}/${_pkgname}"
21-
22-
local base count hash
23-
base=$(grep -oP '(?<=<BaseVersion>)[^<]+' Directory.Build.props)
24-
count=$(git rev-list --count HEAD)
25-
hash=$(git rev-parse --short HEAD)
26-
27-
printf "%s.r%s.g%s\n" "$base" "$count" "$hash"
28-
}
29-
3020
build() {
3121
cd "${srcdir}/${_pkgname}"
3222

3323
dotnet publish OpenSSH_GUI/OpenSSH_GUI.csproj \
3424
--configuration Release \
3525
--runtime linux-x64 \
3626
--output publish \
37-
-p:SelfCcontained=true \
27+
-p:SelfContained=true \
3828
-p:PublishSingleFile=true \
3929
-p:PublishReadyToRun=false \
40-
-p:IncludeNativeLibrariesForSelfExtract=true
30+
-p:IncludeNativeLibrariesForSelfExtract=true \
31+
-p:InformationalVersion="${pkgver}"
4132

4233
rsvg-convert -w 256 -h 256 images/openssh-gui.svg -o appicon-256.png
4334
}
@@ -50,7 +41,7 @@ package() {
5041

5142
install -Dm644 "appicon-256.png" \
5243
"${pkgdir}/usr/share/icons/hicolor/256x256/apps/openssh-gui.png"
53-
44+
5445
install -Dm644 "images/openssh-gui.svg" \
5546
"${pkgdir}/usr/share/icons/hicolor/scalable/apps/openssh-gui.svg"
5647

0 commit comments

Comments
 (0)