[arch-commits] Commit in maui-clip/repos (3 files)
Antonio Rojas
arojas at gemini.archlinux.org
Tue Jan 25 12:49:15 UTC 2022
Date: Tuesday, January 25, 2022 @ 12:49:15
Author: arojas
Revision: 1115495
archrelease: copy trunk to community-staging-x86_64
Added:
maui-clip/repos/community-staging-x86_64/
maui-clip/repos/community-staging-x86_64/PKGBUILD
(from rev 1115494, maui-clip/trunk/PKGBUILD)
maui-clip/repos/community-staging-x86_64/ffmpeg5.patch
(from rev 1115494, maui-clip/trunk/ffmpeg5.patch)
---------------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
ffmpeg5.patch | 16 ++++++++++++++++
2 files changed, 46 insertions(+)
Copied: maui-clip/repos/community-staging-x86_64/PKGBUILD (from rev 1115494, maui-clip/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-01-25 12:49:15 UTC (rev 1115495)
@@ -0,0 +1,30 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=maui-clip
+_pkgname=clip
+pkgver=2.1.0
+pkgrel=3
+pkgdesc='Video player and video collection manager'
+url='https://mauikit.org/'
+arch=(x86_64)
+license=(GPL3)
+depends=(mauikit-filebrowsing taglib ffmpeg)
+makedepends=(extra-cmake-modules)
+groups=(maui)
+source=(https://download.kde.org/stable/maui/$_pkgname/$pkgver/$_pkgname-$pkgver.tar.xz
+ ffmpeg5.patch)
+sha256sums=('c09f9668c25710e4018ca1ac00fa56d7d00a5c64ffc3e967aa3abf3a46c97bef'
+ '54d5c9d7f077edcfb94a6681d590d40ac9c2b83f3da2c340d477c6b2e1b2576f')
+
+prepare() {
+ patch -d $_pkgname-$pkgver -p1 < ffmpeg5.patch # Fix build with FFmpeg 5
+}
+
+build() {
+ cmake -B build -S $_pkgname-$pkgver
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build
+}
Copied: maui-clip/repos/community-staging-x86_64/ffmpeg5.patch (from rev 1115494, maui-clip/trunk/ffmpeg5.patch)
===================================================================
--- community-staging-x86_64/ffmpeg5.patch (rev 0)
+++ community-staging-x86_64/ffmpeg5.patch 2022-01-25 12:49:15 UTC (rev 1115495)
@@ -0,0 +1,16 @@
+diff --git a/src/utils/ffmpegthumbs/moviedecoder.h b/src/utils/ffmpegthumbs/moviedecoder.h
+index 53a9522..d6b717d 100644
+--- a/src/utils/ffmpegthumbs/moviedecoder.h
++++ b/src/utils/ffmpegthumbs/moviedecoder.h
+@@ -57,7 +57,11 @@ private:
+ int m_VideoStream;
+ AVFormatContext* m_pFormatContext;
+ AVCodecContext* m_pVideoCodecContext;
++#if LIBAVCODEC_VERSION_MAJOR < 59
+ AVCodec* m_pVideoCodec;
++#else
++ const AVCodec* m_pVideoCodec;
++#endif
+ // AVStream* m_pVideoStream;
+ AVFrame* m_pFrame;
+ quint8* m_pFrameBuffer;
More information about the arch-commits
mailing list