Date: Saturday, March 4, 2023 @ 21:27:03
  Author: arojas
Revision: 1412513

archrelease: copy trunk to community-staging-x86_64

Added:
  cmus/repos/community-staging-x86_64/
  cmus/repos/community-staging-x86_64/PKGBUILD
    (from rev 1412512, cmus/trunk/PKGBUILD)
  cmus/repos/community-staging-x86_64/ffmpeg6.patch
    (from rev 1412512, cmus/trunk/ffmpeg6.patch)

---------------+
 PKGBUILD      |   68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 ffmpeg6.patch |   14 +++++++++++
 2 files changed, 82 insertions(+)

Copied: cmus/repos/community-staging-x86_64/PKGBUILD (from rev 1412512, 
cmus/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2023-03-04 21:27:03 UTC (rev 1412513)
@@ -0,0 +1,68 @@
+# Maintainer: Xyne <ca dot archlinux at xyne, backwards>
+# Contributor: Bartłomiej Piotrowski <[email protected]>
+# Contributor: Aaron Griffin <[email protected]>
+# Contributor: dorphell <[email protected]>
+# Contributor: Alexander F. Rødseth <[email protected]>
+
+pkgname=cmus
+pkgver=2.10.0
+pkgrel=4
+pkgdesc='Feature-rich ncurses-based music player'
+arch=('x86_64')
+url='https://cmus.github.io/'
+license=('GPL')
+depends=('libdiscid' 'ncurses')
+makedepends=(
+  'faad2'
+  'ffmpeg'
+  'flac'
+  'jack'
+  'libao'
+  'libcdio-paranoia'
+  'libmad'
+  'libmodplug'
+  'libmp4v2'
+  'libmpcdec'
+  'libpulse'
+  'libsamplerate'
+  'libvorbis'
+  'opusfile>=0.12'
+  'wavpack'
+)
+optdepends=('alsa-lib: for ALSA output plugin support'
+            'libao: for AO output plugin support'
+            'libpulse: for PulseAudio output plugin support'
+            'faad2: for AAC input plugin support'
+            'ffmpeg: for ffmpeg input plugin support'
+            'flac: for flac input plugin support'
+            'jack: for jack plugin support'
+            'libmad: for mp3 input plugin support'
+            'libmodplug: for modplug input plugin support'
+            'libmp4v2: for mp4 input plugin support'
+            'libmpcdec: for musepack input plugin support'
+            'libsamplerate: for sampe rate converter support'
+            'libvorbis: for vorbis input plugin support'
+            'libcdio-paranoia: for cdio support'
+            'opusfile: for opus input plugin support'
+            'wavpack: for wavpack input plugin support')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/cmus/cmus/archive/v${pkgver}.tar.gz";
+         ffmpeg6.patch)
+sha256sums=('ff40068574810a7de3990f4f69c9c47ef49e37bd31d298d372e8bcdafb973fff'
+            'f076b87b38d7d642672287a34b8b077ea7c82ddd703378b2a07b6c4b2fe45432')
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -p1 -i ../ffmpeg6.patch # Fix build with FFmpeg 6
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  ./configure prefix=/usr
+  make
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  make DESTDIR="$pkgdir" install
+  install -Dm644 contrib/_cmus "$pkgdir"/usr/share/zsh/site-functions/_cmus
+}

Copied: cmus/repos/community-staging-x86_64/ffmpeg6.patch (from rev 1412512, 
cmus/trunk/ffmpeg6.patch)
===================================================================
--- community-staging-x86_64/ffmpeg6.patch                              (rev 0)
+++ community-staging-x86_64/ffmpeg6.patch      2023-03-04 21:27:03 UTC (rev 
1412513)
@@ -0,0 +1,14 @@
+diff --git a/ip/ffmpeg.c b/ip/ffmpeg.c
+index 09ed3fc..ea0b26f 100644
+--- a/ip/ffmpeg.c
++++ b/ip/ffmpeg.c
+@@ -202,9 +202,6 @@ static int ffmpeg_open(struct input_plugin_data *ip_data)
+                       break;
+               }
+ 
+-              if (codec->capabilities & AV_CODEC_CAP_TRUNCATED)
+-                      cc->flags |= AV_CODEC_FLAG_TRUNCATED;
+-
+               if (avcodec_open2(cc, codec, NULL) < 0) {
+                       d_print("could not open codec: %d, %s\n", cc->codec_id, 
avcodec_get_name(cc->codec_id));
+                       err = -IP_ERROR_UNSUPPORTED_FILE_TYPE;

Reply via email to