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

Commit

Permalink
build: add kalendar
Browse files Browse the repository at this point in the history
Log: 完成app:kalendar的编译
  • Loading branch information
LLLLSHANG authored and kamiyadm committed Dec 1, 2023
1 parent 312ee61 commit 965d655
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
26 changes: 26 additions & 0 deletions io.github.kalendar/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package:
id: io.github.kalendar
name: kalendar
version: 0.0.1
kind: app
description: |
A calendar Qt application to manage your time in an efficient way.
runtime:
id: org.deepin.Runtime
version: 23.0.0

source:
kind: git
url: "https://github.com/echo-devim/kalendar.git"
commit: f9bbb2d96300503476fb8110d7be6c2cc5c3cf80
patch:
- patches/install-desktop.patch

build:
kind: qmake
manual :
configure: |
cd src
qmake -makefile ${conf_args} ${extra_args}
31 changes: 31 additions & 0 deletions io.github.kalendar/patches/install-desktop.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
diff --git a/src/Kalendar.desktop b/src/Kalendar.desktop
new file mode 100644
index 0000000..8516387
--- /dev/null
+++ b/src/Kalendar.desktop
@@ -0,0 +1,5 @@
+[Desktop Entry]
+Type=Application
+Name=Kalendar
+Exec=Kalendar %f
+Icon=kalendar
diff --git a/src/Kalendar.pro b/src/Kalendar.pro
index 5dfefed..7b7c6da 100755
--- a/src/Kalendar.pro
+++ b/src/Kalendar.pro
@@ -69,3 +69,14 @@ QMAKE_CXXFLAGS += -std=c++11

#For DEBUG purpose
#QMAKE_CXXFLAGS += -g
+
+desktop.path = $$PREFIX/share/applications
+desktop.files += Kalendar.desktop
+INSTALLS += desktop
+
+target.path = $$PREFIX/bin
+INSTALLS += target
+
+icons.path = $${PREFIX}/share/icons
+icons.files = ../icon/kalendar.png
+INSTALLS += icons

0 comments on commit 965d655

Please sign in to comment.