From d03cb7d8725e2758b7f70be88b743476dd5047d8 Mon Sep 17 00:00:00 2001 From: mhc2910463910 <2910463910@qq.com> Date: Sun, 12 May 2024 14:53:09 +0800 Subject: [PATCH] build: add app qputty-qt5 A qt 5 port for putty, the free telnet/ssh client Log: add app qputty-qt5 --- io.github.qputty/linglong.yaml | 31 ++++++++++++++++++++++ io.github.qputty/patches/fix-icon.patch | 13 +++++++++ io.github.qputty/patches/fix-install.patch | 31 ++++++++++++++++++++++ io.github.qputty/patches/fix-putty.patch | 13 +++++++++ 4 files changed, 88 insertions(+) create mode 100644 io.github.qputty/linglong.yaml create mode 100644 io.github.qputty/patches/fix-icon.patch create mode 100644 io.github.qputty/patches/fix-install.patch create mode 100644 io.github.qputty/patches/fix-putty.patch diff --git a/io.github.qputty/linglong.yaml b/io.github.qputty/linglong.yaml new file mode 100644 index 000000000..2c3554359 --- /dev/null +++ b/io.github.qputty/linglong.yaml @@ -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 diff --git a/io.github.qputty/patches/fix-icon.patch b/io.github.qputty/patches/fix-icon.patch new file mode 100644 index 000000000..37dadc097 --- /dev/null +++ b/io.github.qputty/patches/fix-icon.patch @@ -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 diff --git a/io.github.qputty/patches/fix-install.patch b/io.github.qputty/patches/fix-install.patch new file mode 100644 index 000000000..004ab85ab --- /dev/null +++ b/io.github.qputty/patches/fix-install.patch @@ -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 { diff --git a/io.github.qputty/patches/fix-putty.patch b/io.github.qputty/patches/fix-putty.patch new file mode 100644 index 000000000..32cc89c37 --- /dev/null +++ b/io.github.qputty/patches/fix-putty.patch @@ -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.