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

build: add lyricpad #1964

Merged
merged 1 commit into from
Mar 1, 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
20 changes: 20 additions & 0 deletions io.github.lyricpad/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package:
id: io.github.lyricpad
name: lyricpad
version: 0.1.0
kind: app
description: |
Qt App Lyrics from web

runtime:
id: org.deepin.Runtime
version: 23.0.0

source:
kind: git
url: https://github.com/keshavbhatt/lyricpad.git
commit: 0b6776f71cc66c3c93d97f184361abcdc4bf2114
patch: patches/0001-install.patch

build:
kind: qmake
48 changes: 48 additions & 0 deletions io.github.lyricpad/patches/0001-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
From f3ec8cbfdd0c2ae4c61036dd44334a20d58388e2 Mon Sep 17 00:00:00 2001
From: wjyrich <1071633242@qq.com>
Date: Mon, 26 Feb 2024 15:43:21 +0800
Subject: [PATCH] install

---
lyricspad.pro | 9 ++++++++-
snap/gui/lyricpad.desktop | 2 +-
2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/lyricspad.pro b/lyricspad.pro
index 93ef0bd..6d8e7f8 100644
--- a/lyricspad.pro
+++ b/lyricspad.pro
@@ -43,9 +43,16 @@ FORMS += \

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
-else: unix:!android: target.path = /opt/$${TARGET}/bin
+else: unix:!android: #target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

+target.path =$$PREFIX/bin
+desktop.files =snap/gui/lyricpad.desktop
+desktop.path = $$PREFIX/share/applications/
+icons.path = $$PREFIX/share/icons
+icons.files = snap/gui/icon.png
+INSTALLS += target desktop icons
+
RESOURCES += \
themes.qrc

diff --git a/snap/gui/lyricpad.desktop b/snap/gui/lyricpad.desktop
index 97c65a9..5c484ff 100644
--- a/snap/gui/lyricpad.desktop
+++ b/snap/gui/lyricpad.desktop
@@ -3,7 +3,7 @@ Version=1.0
GenericName=Lyricpad
Name=Lyricpad
Type=Application
-Icon=${SNAP}/meta/gui/icon.png
+Icon=icon
Keywords=Lyrics;Musicmatch
Exec=lyricpad %F
Categories=Utility;Audio;
--
2.33.1

Loading