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

Commit

Permalink
build: add AVIMetaEdit
Browse files Browse the repository at this point in the history
    AVI metadata editor

Log: add software name--AVIMetaEdit
  • Loading branch information
wjyrich committed Mar 11, 2024
1 parent e7f01b2 commit 83bd134
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
28 changes: 28 additions & 0 deletions io.github.AVIMetaEdit/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package:
id: io.github.AVIMetaEdit
name: AVIMetaEdit
version: 1.0.2
kind: app
description: |
AVI metadata editor
runtime:
id: org.deepin.Runtime
version: 23.0.0

source:
kind: git
url: https://github.com/MediaArea/AVIMetaEdit.git
commit: e662278ee91ca6e377e9aac2ac344cb75e3bf5f9
patch: patches/0001-install.patch

build:
kind: qmake
manual:
configure: |
cd Project/QtCreator
qmake -makefile ${conf_args} ${extra_args}
build: |
make ${jobs}
install: |
make ${jobs} DESTDIR=${dest_dir} install
47 changes: 47 additions & 0 deletions io.github.AVIMetaEdit/patches/0001-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
From 5c5e819ef58e5eb4d9dd8242c4502a29ec934825 Mon Sep 17 00:00:00 2001
From: wjyrich <1071633242@qq.com>
Date: Mon, 11 Mar 2024 18:47:15 +0800
Subject: [PATCH] install

---
Project/GNU/GUI/avimetaedit-gui.desktop | 2 +-
Project/QtCreator/avimetaedit-gui.pro | 9 +++++++--
2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/Project/GNU/GUI/avimetaedit-gui.desktop b/Project/GNU/GUI/avimetaedit-gui.desktop
index b39299f..b8f9a4d 100755
--- a/Project/GNU/GUI/avimetaedit-gui.desktop
+++ b/Project/GNU/GUI/avimetaedit-gui.desktop
@@ -5,7 +5,7 @@ Version=1.0
Name=AVI MetaEdit
GenericName=Media Analyzer
Comment=Edit AVI files
-Icon=avimetaedit
+Icon=AVIMetaEdit
Exec=avimetaedit-gui %f
Terminal=false
MimeType=
diff --git a/Project/QtCreator/avimetaedit-gui.pro b/Project/QtCreator/avimetaedit-gui.pro
index c8d97fa..c484016 100644
--- a/Project/QtCreator/avimetaedit-gui.pro
+++ b/Project/QtCreator/avimetaedit-gui.pro
@@ -26,9 +26,14 @@ macx {
}

unix {
- isEmpty(BINDIR): BINDIR = /usr/bin
+ isEmpty(BINDIR): BINDIR = $$PREFIX/bin
target.path = $$BINDIR
- INSTALLS += target
+ desktop.files =../GNU/GUI/avimetaedit-gui.desktop
+ desktop.path = $$PREFIX/share/applications/
+ icons.path = $$PREFIX/share/icons
+ icons.files = ../../Source/Resource/Image/AVIMetaEdit.svg
+ INSTALLS += target desktop icons
+
}

TEMPLATE = app
--
2.33.1

0 comments on commit 83bd134

Please sign in to comment.