From c737382b95a4cab28271cef076692bfa7027b796 Mon Sep 17 00:00:00 2001 From: wjyrich <1071633242@qq.com> Date: Tue, 21 May 2024 14:51:26 +0800 Subject: [PATCH] build: add mugi-grep Gui grep (and sed) with sessions and history Log: add software name--mugi-grep --- io.github.mugi-grep/linglong.yaml | 20 +++++++++ .../patches/0001-install.patch | 45 +++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 io.github.mugi-grep/linglong.yaml create mode 100644 io.github.mugi-grep/patches/0001-install.patch diff --git a/io.github.mugi-grep/linglong.yaml b/io.github.mugi-grep/linglong.yaml new file mode 100644 index 000000000..650f9710c --- /dev/null +++ b/io.github.mugi-grep/linglong.yaml @@ -0,0 +1,20 @@ +package: + id: io.github.mugi-grep + name: mugi-grep + version: 1.6.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 diff --git a/io.github.mugi-grep/patches/0001-install.patch b/io.github.mugi-grep/patches/0001-install.patch new file mode 100644 index 000000000..a2b15b048 --- /dev/null +++ b/io.github.mugi-grep/patches/0001-install.patch @@ -0,0 +1,45 @@ +From 8d568d0b4b826eee840f96e47fa288629cdb7c75 Mon Sep 17 00:00:00 2001 +From: wjyrich <1071633242@qq.com> +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/ ++icons.files = icons/* ++ ++INSTALLS += target desktop icons + + DISTFILES += \ + todo.txt +-- +2.33.1 +