From 1ee079af9dd975395c1de550ff0e29350c253bdf Mon Sep 17 00:00:00 2001 From: wjyrich <1071633242@qq.com> Date: Tue, 28 May 2024 21:48:02 +0800 Subject: [PATCH] build: add pumpa Pumpa is a simple [pump.io][1] client written in C++ and Qt Log: add software name--pumpa --- io.github.pumpa/linglong.yaml | 21 ++++++++++ io.github.pumpa/patches/0001-install.patch | 48 ++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 io.github.pumpa/linglong.yaml create mode 100644 io.github.pumpa/patches/0001-install.patch diff --git a/io.github.pumpa/linglong.yaml b/io.github.pumpa/linglong.yaml new file mode 100644 index 000000000..c58332cbe --- /dev/null +++ b/io.github.pumpa/linglong.yaml @@ -0,0 +1,21 @@ +package: + id: io.github.pumpa + name: pumpa + version: 1.0.1 + kind: app + description: | + Pumpa is a simple [pump.io][1] client written in C++ and Qt + +runtime: + id: org.deepin.Runtime + version: 23.0.0 + +source: + kind: git + url: https://github.com/enko/pumpa.git + commit: 3b3e4453c8d7ecfd7a26d133678c021aadd4de79 + patch: patches/0001-install.patch + +build: + kind: qmake + \ No newline at end of file diff --git a/io.github.pumpa/patches/0001-install.patch b/io.github.pumpa/patches/0001-install.patch new file mode 100644 index 000000000..22be8b44d --- /dev/null +++ b/io.github.pumpa/patches/0001-install.patch @@ -0,0 +1,48 @@ +From d4fa7d32b54500317c5bdddc29a0efb5b5589d71 Mon Sep 17 00:00:00 2001 +From: wjyrich <1071633242@qq.com> +Date: Tue, 14 May 2024 13:44:30 +0800 +Subject: [PATCH] install + +--- + pumpa.desktop | 4 ++-- + pumpa.pro | 8 ++++++-- + 2 files changed, 8 insertions(+), 4 deletions(-) + +diff --git a/pumpa.desktop b/pumpa.desktop +index 07f956a..1639bf9 100644 +--- a/pumpa.desktop ++++ b/pumpa.desktop +@@ -1,8 +1,8 @@ + [Desktop Entry] + Version=0.7.3 + Name=Pumpa +-Exec=./pumpa +-Icon=./pumpa/images/pumpa.png ++Exec=pumpa ++Icon=pumpa + Terminal=false + Type=Application + Categories=Network +diff --git a/pumpa.pro b/pumpa.pro +index 19688d8..f40aef0 100644 +--- a/pumpa.pro ++++ b/pumpa.pro +@@ -161,9 +161,13 @@ SOURCES += \ + ###################################################################### + # Install target + ###################################################################### ++target.path =$$PREFIX/bin ++desktop.files =pumpa.desktop ++desktop.path = $$PREFIX/share/applications/ ++icons.path = $$PREFIX/share/icons/hicolor/16X16/apps/ ++icons.files = images/pumpa.png + +-target.path = /usr/local/bin +-INSTALLS += target ++INSTALLS += target desktop icons + + + ###################################################################### +-- +2.33.1 +