Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
build: add pumpa
Browse files Browse the repository at this point in the history
Pumpa is a simple [pump.io][1] client written in C++ and Qt

Log: add software name--pumpa
  • Loading branch information
wjyrich authored and kamiyadm committed May 29, 2024
1 parent 25a424a commit 1ee079a
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
21 changes: 21 additions & 0 deletions io.github.pumpa/linglong.yaml
Original file line number Diff line number Diff line change
@@ -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

48 changes: 48 additions & 0 deletions io.github.pumpa/patches/0001-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
From d4fa7d32b54500317c5bdddc29a0efb5b5589d71 Mon Sep 17 00:00:00 2001
From: wjyrich <[email protected]>
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

0 comments on commit 1ee079a

Please sign in to comment.