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

Commit

Permalink
build: add porymap
Browse files Browse the repository at this point in the history
Map editor for pokeemerald, pokefirered, and pokerub

log: add a software
  • Loading branch information
Van020530 committed Apr 14, 2024
1 parent 8834175 commit 6389cb7
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
18 changes: 18 additions & 0 deletions io.github.porymap/linglong.yaml
Original file line number Diff line number Diff line change
@@ -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
46 changes: 46 additions & 0 deletions io.github.porymap/patches/0001-fix-desktop.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
From bc4b5db85298203de80a556e75d0cbd73b3d6643 Mon Sep 17 00:00:00 2001
From: van <[email protected]>
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

0 comments on commit 6389cb7

Please sign in to comment.