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

Commit

Permalink
build: add app qcheckers
Browse files Browse the repository at this point in the history
QCheckers is a Qt-based checkers board game.

Log: add app QCheckers
  • Loading branch information
lzmhc authored and kamiyadm committed May 29, 2024
1 parent eb1e119 commit a92a952
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
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

0 comments on commit a92a952

Please sign in to comment.