Skip to content

Commit

Permalink
build: add app qputty-qt5
Browse files Browse the repository at this point in the history
A qt 5 port for putty, the free telnet/ssh client

Log: add app qputty-qt5
  • Loading branch information
mhc2910463910 committed May 12, 2024
1 parent ceda2d7 commit d03cb7d
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 0 deletions.
31 changes: 31 additions & 0 deletions io.github.qputty/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package:
id: io.github.qputty
name: qputty
version: 0.506.0
kind: app
description: |
A Qt 5 port for putty, the free telnet/ssh client.
runtime:
id: org.deepin.Runtime
version: 23.0.0
depends:
- id: libgssglue
version: 0.9.2
source:
kind: git
url: "https://github.com/seppd/qputty-qt5.git"
commit: c8c3ddd08fd29159e10aee8b0c71dcd1008e4659
patch:
- patches/fix-install.patch
- patches/fix-putty.patch
- patches/fix-icon.patch
build:
kind: manual
manual:
configure: |
qmake PREFIX=${PREFIX} LIB_INSTALL_DIR=${PREFIX}/lib/${TRIPLET}
build: |
make -j${JOBS}
install: |
make -j${JOBS} DESTDIR=${dest_dir} install
13 changes: 13 additions & 0 deletions io.github.qputty/patches/fix-icon.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/qPutty.desktop b/qPutty.desktop
index 7016e06..19726bc 100644
--- a/qPutty.desktop
+++ b/qPutty.desktop
@@ -3,7 +3,7 @@ Name=QPutty
GenericName=SSH and telnet client
Comment=Log on to remote systems using SSH, Telnet or Rlogin
Exec=qPutty
-Icon=qputty
+Icon=putty-32
Terminal=false
Type=Application
StartupNotify=false
31 changes: 31 additions & 0 deletions io.github.qputty/patches/fix-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
diff --git a/qPutty.pro b/qPutty.pro
index 31c7217..15526cb 100644
--- a/qPutty.pro
+++ b/qPutty.pro
@@ -21,17 +21,22 @@ CONFIG(release,debug|release) {

SOURCES *= putty.cpp

-isEmpty(PREFIX){
- PREFIX=/usr/local
-}
+# isEmpty(PREFIX){
+# PREFIX=/usr/local
+# }

unix {
+ icons.files += putty-32.png
+ icons.path = $$PREFIX/share/icons
+
desktopEntry.path = $$PREFIX/share/applications/
desktopEntry.files = qPutty.desktop

target.path = $$PREFIX/bin
QT+=x11extras
- INSTALLS+=target desktopEntry
+ INSTALLS+=target desktopEntry icons
+
+ PKGCONFIG += libgssglue
}

macx {
13 changes: 13 additions & 0 deletions io.github.qputty/patches/fix-putty.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/uxputty.c b/uxputty.c
index 27f33f1..b5d061d 100644
--- a/uxputty.c
+++ b/uxputty.c
@@ -39,7 +39,7 @@
* Stubs to avoid uxpty.c needing to be linked in.
*/
const int use_pty_argv = FALSE;
-char **pty_argv; /* never used */
+//char **pty_argv; /* never used */

/*
* Clean up and exit.

0 comments on commit d03cb7d

Please sign in to comment.