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

build: add app qcheckers #2144

Merged
merged 1 commit into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions io.github.qcheckers/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package:
id: io.github.qcheckers
name: QCheckers
version: 0.9.1.0
kind: app
description: |
QCheckers (formely known as KCheckers) is a Qt-based checkers board game. It can play english draughts and russian draughts..
runtime:
id: org.deepin.Runtime
version: 23.0.0

source:
kind: git
url: "https://github.com/portnov/qcheckers.git"
commit: 8b8a3e64520e8e074e6035e3a12ff3f7075c7463
patch:
- patches/fix-icon.patch
- patches/fix-install.patch

build:
kind: qmake
10 changes: 10 additions & 0 deletions io.github.qcheckers/patches/fix-icon.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
diff --git a/qcheckers.desktop b/qcheckers.desktop
index 925d31e..e144ef4 100644
--- a/qcheckers.desktop
+++ b/qcheckers.desktop
@@ -5,4 +5,4 @@ Name=QCheckers
GenericName=Checkers board game
Type=Application
Exec=qcheckers
-Icon=qcheckers.svg
+Icon=qcheckers
12 changes: 12 additions & 0 deletions io.github.qcheckers/patches/fix-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/src/src.pro b/src/src.pro
index df72aae..8858f5d 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -47,6 +47,6 @@ desktop.files += ../qcheckers.desktop
INSTALLS += desktop

# Install icon
-icon.path += $$PREFIX/share/icons/hicolor/scalable/apps
+icon.path += $$PREFIX/share/icons/hicolor/scalable/apps
icon.files += ../qcheckers.svg
INSTALLS += icon
Loading