commit:     4db856f590161722512b22bee6a3ed5d0d1e8965
Author:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Wed Sep 13 22:59:29 2023 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Wed Sep 13 23:04:00 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4db856f5

media-video/lossless-cut: revbump 3.54.0

- Add SRC_URL versioning
- Add missing sys-libs/zlib runtime dependency
- Specify QA_PREBUILT regex
- Install metadata
  - XDG desktop file
  - AppStream metadata
  - Icon

Closes: https://bugs.gentoo.org/914036
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>

 media-video/lossless-cut/Manifest                  |   1 +
 .../files/lossless-cut-3.54.0-misc.tar.xz          | Bin 0 -> 2744 bytes
 .../lossless-cut/lossless-cut-3.54.0-r1.ebuild     |  45 +++++++++++++++++++++
 3 files changed, 46 insertions(+)

diff --git a/media-video/lossless-cut/Manifest 
b/media-video/lossless-cut/Manifest
index 20849ae061..05a117d022 100644
--- a/media-video/lossless-cut/Manifest
+++ b/media-video/lossless-cut/Manifest
@@ -1 +1,2 @@
 DIST LosslessCut-linux-x86_64.AppImage 160224247 BLAKE2B 
3c0501e408c16e1490d4d060fe8e695cc8cd29c81b894126645036fa09f58c8d3c0ae9e064e423c9af0acb1723b3f6121d2037e22b62649b102ad09564a3f9dc
 SHA512 
bb5015de0d5e96ca3bf5a09fc5e105c457e752a258ff1f5b10576935679cf73912887c918dcb410f273050dd1621b109f4cd767c430c159ef7545e44765a05f6
+DIST lossless-cut-3.54.0.AppImage 160224247 BLAKE2B 
3c0501e408c16e1490d4d060fe8e695cc8cd29c81b894126645036fa09f58c8d3c0ae9e064e423c9af0acb1723b3f6121d2037e22b62649b102ad09564a3f9dc
 SHA512 
bb5015de0d5e96ca3bf5a09fc5e105c457e752a258ff1f5b10576935679cf73912887c918dcb410f273050dd1621b109f4cd767c430c159ef7545e44765a05f6

diff --git a/media-video/lossless-cut/files/lossless-cut-3.54.0-misc.tar.xz 
b/media-video/lossless-cut/files/lossless-cut-3.54.0-misc.tar.xz
new file mode 100644
index 0000000000..700ff5b7d4
Binary files /dev/null and 
b/media-video/lossless-cut/files/lossless-cut-3.54.0-misc.tar.xz differ

diff --git a/media-video/lossless-cut/lossless-cut-3.54.0-r1.ebuild 
b/media-video/lossless-cut/lossless-cut-3.54.0-r1.ebuild
new file mode 100644
index 0000000000..f1f76f06e7
--- /dev/null
+++ b/media-video/lossless-cut/lossless-cut-3.54.0-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop xdg
+
+DESCRIPTION="Lossless video/audio editing: export media without reencoding, 
powered by ffmpeg"
+HOMEPAGE="https://mifi.no/losslesscut/
+https://github.com/mifi/lossless-cut";
+
+SRC_URI="https://github.com/mifi/lossless-cut/releases/download/v${PV}/LosslessCut-linux-x86_64.AppImage
+       -> ${P}.AppImage
+"
+KEYWORDS="~amd64"
+
+LICENSE="GPL-2"
+SLOT="0"
+RESTRICT="strip"
+
+RDEPEND="sys-fs/fuse:0
+sys-libs/zlib:=
+"
+
+QA_PREBUILT="usr/bin/losslesscut-bin"
+
+src_unpack() {
+       unpack "${FILESDIR}"/${P}-misc.tar.xz
+}
+
+src_prepare() {
+       default
+       # Fix XDG desktop entry Exec
+       sed -i -e 's,/app/bin/run.sh,losslesscut-bin,' \
+               no.mifi.losslesscut.desktop || die
+}
+
+src_install() {
+       newbin "${DISTDIR}"/${P}.AppImage losslesscut-bin
+       domenu no.mifi.losslesscut.desktop
+       doicon no.mifi.losslesscut.svg
+
+       insinto /usr/share/metainfo
+       doins no.mifi.losslesscut.appdata.xml
+}

Reply via email to