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 authored and kamiyadm committed Apr 30, 2024
1 parent 24e13b5 commit dd5ba5e
Show file tree
Hide file tree
Showing 2 changed files with 65 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.3
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
47 changes: 47 additions & 0 deletions io.github.porymap/patches/0001-fix-desktop.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
From 91488e311fc5a904496350991ebcdf7e7faa46d7 Mon Sep 17 00:00:00 2001
From: van <[email protected]>
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=flowers-painted
+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=docs/_images/flowers-painted.png
+icon.path= $$DATADIR/icons/
+INSTALLS += target desktop icon
--
2.33.1

0 comments on commit dd5ba5e

Please sign in to comment.