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

build: add bpmdetect #2172

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
26 changes: 26 additions & 0 deletions io.github.bpmdetect/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package:
id: io.github.bpmdetect
name: bpmdetect
version: 0.7.2.1
kind: app
description: |
BPMDetect is automatic BPM (beats per minute) detection utility.

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

depends:
- id: portaudio19
version: 19.6.0
type: runtime
- id: taglib/1.12.0

source:
kind: git
url: https://github.com/Tatsh/bpmdetect.git
commit: 5bb55a000a447327d22f8521c69521e5728a8fa8
patch: patches/0001-install.patch

build:
kind: cmake
30 changes: 30 additions & 0 deletions io.github.bpmdetect/patches/0001-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
From a635ff572585466a11852c5eb17d339c5c82a4bc Mon Sep 17 00:00:00 2001
From: wjyrich <[email protected]>
Date: Sun, 12 May 2024 11:53:59 +0800
Subject: [PATCH] install

---
CMakeLists.txt | 10 ++++++++++
1 file changed, 10 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0ba689f..0cd6dc1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,3 +16,13 @@ pkg_check_modules(VORBIS vorbisfile)

set(CMAKE_AUTOUIC ON)
add_subdirectory(src)
+
+install(TARGETS ${PROJECT_NAME}
+ DESTINATION bin)
+
+install(FILES src/bpmdetect-icon.png
+ DESTINATION share/icons/hicolor/16X16/apps/)
+
+
+install(FILES src/bpmdetect.desktop
+ DESTINATION share/applications)
--
2.33.1

Loading