From abd7d8b297ba164ce3000b1bab7cb78292e27823 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 | 47 +++++++++++++++++++ 2 files changed, 65 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..88cd6c81d --- /dev/null +++ b/io.github.porymap/linglong.yaml @@ -0,0 +1,18 @@ +package: + id: io.github.porymap + name: porymap + version: 1.0.3.2 + 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..a5cefbd8e --- /dev/null +++ b/io.github.porymap/patches/0001-fix-desktop.patch @@ -0,0 +1,47 @@ +From 91488e311fc5a904496350991ebcdf7e7faa46d7 Mon Sep 17 00:00:00 2001 +From: van <751890223@qq.com> +Date: Sun, 14 Apr 2024 13:26:53 +0800 +Subject: [PATCH] fix-desktop + +--- + porymap.desktop | 9 +++++++++ + porymap.pro | 10 ++++++++++ + 2 files changed, 19 insertions(+) + create mode 100644 porymap.desktop + +diff --git a/porymap.desktop b/porymap.desktop +new file mode 100644 +index 0000000..4e7db37 +--- /dev/null ++++ b/porymap.desktop +@@ -0,0 +1,9 @@ ++[Desktop Entry] ++Categories=Tool;Qt; ++Exec=porymap ++Name=porymap ++Icon=porymap.icns ++StartupNotify=false ++Terminal=false ++Type=Application ++X-Deepin-Vendor=user-custom +diff --git a/porymap.pro b/porymap.pro +index 63b97c1..fc74a65 100644 +--- a/porymap.pro ++++ b/porymap.pro +@@ -226,3 +226,13 @@ 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.files=resources/icons/porymap.icns ++icon.path= $$DATADIR/icons/ ++INSTALLS += target desktop icon +-- +2.33.1 +