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

Commit

Permalink
build: add lyricpad
Browse files Browse the repository at this point in the history
    Qt App Lyrics from web

Log: add software name--lyricpad
  • Loading branch information
wjyrich committed Feb 26, 2024
1 parent e7f01b2 commit d597449
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
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.0.1
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

0 comments on commit d597449

Please sign in to comment.