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

Commit

Permalink
build: add ngPost
Browse files Browse the repository at this point in the history
Command Line (or minimalist GUI) usenet poster for binaries developped in C++/QT designed to be as fast as possible and offer all the main features to post data easily and safely.

log: add a software.
  • Loading branch information
Van020530 committed Apr 14, 2024
1 parent 8834175 commit 2427964
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
27 changes: 27 additions & 0 deletions io.github.ngPost/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package:
id: io.github.ngPost
name: ngPost
version: 4.16.0.4
kind: app
description: |
Command Line (or minimalist GUI) usenet poster for binaries developped in C++/QT designed to be as fast as possible and offer all the main features to post data easily and safely.
runtime:
id: org.deepin.Runtime
version: 23.0.0

source:
kind: git
url: https://github.com/mbruel/ngPost.git
commit: 97a84347f1ea548f3fdc4104759552a452be3c2b
patch: patches/0001-fix-desktop.patch

build:
kind: qmake
manual :
configure: |
cd src
qmake ngPost.pro ${conf_args} ${extra_args}
build: |
make ${jobs}
install: |
make ${jobs} DESTDIR=${dest_dir} install
48 changes: 48 additions & 0 deletions io.github.ngPost/patches/0001-fix-desktop.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
From f46e5c7462c32fc684032d6a108f1e2e5a17a950 Mon Sep 17 00:00:00 2001
From: van <751890223@qq.com>
Date: Sun, 14 Apr 2024 22:18:33 +0800
Subject: [PATCH] fix-desktop

---
src/ngPost.desktop | 10 ++++++++++
src/ngPost.pro | 10 ++++++++++
2 files changed, 20 insertions(+)
create mode 100644 src/ngPost.desktop

diff --git a/src/ngPost.desktop b/src/ngPost.desktop
new file mode 100644
index 0000000..11de4f5
--- /dev/null
+++ b/src/ngPost.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Categories=Tool;Qt;
+Comment=for binaries developped in C++/QT
+Exec=ngPost
+Name=ngPost
+Icon=ngPost
+StartupNotify=false
+Terminal=false
+Type=Application
+X-Deepin-Vendor=user-custom
diff --git a/src/ngPost.pro b/src/ngPost.pro
index ac6a23c..f6da8f4 100644
--- a/src/ngPost.pro
+++ b/src/ngPost.pro
@@ -36,3 +36,13 @@ FORMS += \
hmi/MainWindow.ui \
hmi/PostingWidget.ui
}
+
+#install
+BINDIR = $$PREFIX/bin
+DATADIR = $$PREFIX/share
+target.path = $$BINDIR
+desktop.files = ngPost.desktop
+icon.files = resources/icons/ngPost.png
+icon.path = $$DATADIR/icons/
+desktop.path = $$DATADIR/applications/
+INSTALLS += target desktop icon
--
2.33.1

0 comments on commit 2427964

Please sign in to comment.