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

Commit

Permalink
build: add mugi-grep
Browse files Browse the repository at this point in the history
Gui grep (and sed) with sessions and history

Log: add software name--mugi-grep
  • Loading branch information
wjyrich committed May 28, 2024
1 parent e7f01b2 commit b10f24a
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
20 changes: 20 additions & 0 deletions io.github.mugi-grep/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package:
id: io.github.mugi-grep
name: mugi-grep
version: 1.6.1.1
kind: app
description: |
Gui grep (and sed) with sessions and history
runtime:
id: org.deepin.Runtime
version: 23.0.0

source:
kind: git
url: https://github.com/mugiseyebrows/mugi-grep.git
commit: 21f7a8d4964210151d55862f412f87d79bbda041
patch: patches/0001-install.patch

build:
kind: qmake
45 changes: 45 additions & 0 deletions io.github.mugi-grep/patches/0001-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
From 8d568d0b4b826eee840f96e47fa288629cdb7c75 Mon Sep 17 00:00:00 2001
From: wjyrich <[email protected]>
Date: Tue, 21 May 2024 14:45:17 +0800
Subject: [PATCH] install

---
mugi-grep.desktop | 5 +++++
mugi-grep.pro | 9 +++++++--
2 files changed, 12 insertions(+), 2 deletions(-)
create mode 100644 mugi-grep.desktop

diff --git a/mugi-grep.desktop b/mugi-grep.desktop
new file mode 100644
index 0000000..d0adb74
--- /dev/null
+++ b/mugi-grep.desktop
@@ -0,0 +1,5 @@
+[Desktop Entry]
+Name=mugi-grep
+Icon=mugi-grep
+Exec=mugi-grep
+Categories=Utility
diff --git a/mugi-grep.pro b/mugi-grep.pro
index 858da1c..626380f 100644
--- a/mugi-grep.pro
+++ b/mugi-grep.pro
@@ -187,8 +187,13 @@ FORMS += \
src/widget/rxreplaceinput.ui \
src/widget/lineeditandcheckbox.ui

-target.path = /usr/local/bin
-INSTALLS += target
+target.path = $$PREFIX/bin
+desktop.files = mugi-grep.desktop
+desktop.path = $$PREFIX/share/applications/
+icons.path = $$PREFIX/share/icons/hicolor/16X16/apps/
+icons.files = icons/*
+
+INSTALLS += target desktop icons

DISTFILES += \
todo.txt
--
2.33.1

0 comments on commit b10f24a

Please sign in to comment.