Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: add app qputty-qt5 #2168

Merged
merged 1 commit into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.2
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/mhc2910463910/qputty-qt.git"
commit: 49535366e85c155d491d79940517d3f754b152d9
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/hicolor/32x32/apps
+
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.
Loading