From 6389cb7e5a2fc50f41c27f3d2ccf038c5036914e Mon Sep 17 00:00:00 2001 From: van <751890223@qq.com> Date: Sun, 14 Apr 2024 13:12:08 +0800 Subject: [PATCH] build: add porymap Map editor for pokeemerald, pokefirered, and pokerub log: add a software --- io.github.porymap/linglong.yaml | 18 ++++++++ .../patches/0001-fix-desktop.patch | 46 +++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 io.github.porymap/linglong.yaml create mode 100644 io.github.porymap/patches/0001-fix-desktop.patch diff --git a/io.github.porymap/linglong.yaml b/io.github.porymap/linglong.yaml new file mode 100644 index 000000000..b54818e11 --- /dev/null +++ b/io.github.porymap/linglong.yaml @@ -0,0 +1,18 @@ +package: + id: io.github.porymap + name: porymap + version: 1.0.3.1 + kind: app + description: | + Map editor for pokeemerald, pokefirered, and pokerub +runtime: + id: org.deepin.Runtime + version: 23.0.0 + +source: + kind: git + url: https://github.com/huderlem/porymap.git + commit: 6ee76f80d1ffb131239ab181112cd8b68286ca01 + patch: patches/0001-fix-desktop.patch +build: + kind: qmake \ No newline at end of file diff --git a/io.github.porymap/patches/0001-fix-desktop.patch b/io.github.porymap/patches/0001-fix-desktop.patch new file mode 100644 index 000000000..64371c2f8 --- /dev/null +++ b/io.github.porymap/patches/0001-fix-desktop.patch @@ -0,0 +1,46 @@ +From bc4b5db85298203de80a556e75d0cbd73b3d6643 Mon Sep 17 00:00:00 2001 +From: van <751890223@qq.com> +Date: Sun, 14 Apr 2024 12:58:07 +0800 +Subject: [PATCH] fix-desktop + +--- + porymap.desktop | 9 +++++++++ + porymap.pro | 9 +++++++++ + 2 files changed, 18 insertions(+) + create mode 100644 porymap.desktop + +diff --git a/porymap.desktop b/porymap.desktop +new file mode 100644 +index 0000000..489d3a0 +--- /dev/null ++++ b/porymap.desktop +@@ -0,0 +1,9 @@ ++[Desktop Entry] ++Categories=Tool;Qt; ++Exec=porymap ++Name=porymap ++Icon=porymap ++StartupNotify=false ++Terminal=false ++Type=Application ++X-Deepin-Vendor=user-custom +diff --git a/porymap.pro b/porymap.pro +index 63b97c1..3ccba25 100644 +--- a/porymap.pro ++++ b/porymap.pro +@@ -226,3 +226,12 @@ INCLUDEPATH += include/lib + INCLUDEPATH += forms + + include(src/vendor/QtGifImage/gifimage/qtgifimage.pri) ++ ++#install role ++BINDIR = $$PREFIX/bin ++DATADIR = $$PREFIX/share ++target.path = $$BINDIR ++desktop.files = porymap.desktop ++desktop.path = $$DATADIR/applications/ ++ICON.path= $$DATADIR/share/ ++INSTALLS += target desktop ICON +-- +2.33.1 +