Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages / 
minidlna


Commits:
f9394ee0 by Antonio Rojas at 2024-05-25T14:57:53+02:00
upgpkg: 1.3.3-2: ffmpeg 7 rebuild

- - - - -


3 changed files:

- + .SRCINFO
- PKGBUILD
- + ffmpeg7.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,24 @@
+pkgbase = minidlna
+       pkgdesc = A DLNA/UPnP-AV Media server (aka ReadyDLNA)
+       pkgver = 1.3.3
+       pkgrel = 2
+       url = https://sourceforge.net/projects/minidlna/
+       arch = x86_64
+       license = GPL
+       makedepends = git
+       depends = libexif
+       depends = libjpeg
+       depends = libid3tag
+       depends = flac
+       depends = libvorbis
+       depends = ffmpeg
+       depends = sqlite
+       backup = etc/minidlna.conf
+       source = minidlna::git+https://git.code.sf.net/p/minidlna/git#tag=v1_3_3
+       source = minidlna.service
+       source = ffmpeg7.patch
+       sha512sums = 
7048a86a72d6ce23de2292120427a258993028d8ec7fef68a4879c2a41ab24c07d68526d92a477a5b20c21ee8cfa1a758e5d7ed34dd666d8325eb75be37cce93
+       sha512sums = 
fc5692adf537e203a0466a923d350498faba4f29a219bb6e1ad527fc267d6143403fe8b4c6f5d746805f451142b1ba3ed4e9bb57e445255f3769df8e037a8b66
+       sha512sums = 
0bff7af02ae2d6b0d6f1e4c0ee26cd18f156bfb99377a365c8ff2c3c5555a5e979c215423579a45f82e0cb1fce8628de2c1ca51a28fa07a1d336b9ecc561a7f3
+
+pkgname = minidlna


=====================================
PKGBUILD
=====================================
@@ -6,7 +6,7 @@
 
 pkgname=minidlna
 pkgver=1.3.3
-pkgrel=1
+pkgrel=2
 pkgdesc="A DLNA/UPnP-AV Media server (aka ReadyDLNA)"
 arch=('x86_64')
 url="https://sourceforge.net/projects/minidlna/";
@@ -15,14 +15,17 @@ depends=('libexif' 'libjpeg' 'libid3tag' 'flac' 'libvorbis' 
'ffmpeg' 'sqlite')
 makedepends=('git')
 backup=('etc/minidlna.conf')
 
source=("minidlna::git+https://git.code.sf.net/p/minidlna/git#tag=v${pkgver//./_}";
-       minidlna.service)
-sha512sums=('SKIP'
-            
'fc5692adf537e203a0466a923d350498faba4f29a219bb6e1ad527fc267d6143403fe8b4c6f5d746805f451142b1ba3ed4e9bb57e445255f3769df8e037a8b66')
+       minidlna.service
+        ffmpeg7.patch)
+sha512sums=('7048a86a72d6ce23de2292120427a258993028d8ec7fef68a4879c2a41ab24c07d68526d92a477a5b20c21ee8cfa1a758e5d7ed34dd666d8325eb75be37cce93'
+            
'fc5692adf537e203a0466a923d350498faba4f29a219bb6e1ad527fc267d6143403fe8b4c6f5d746805f451142b1ba3ed4e9bb57e445255f3769df8e037a8b66'
+            
'0bff7af02ae2d6b0d6f1e4c0ee26cd18f156bfb99377a365c8ff2c3c5555a5e979c215423579a45f82e0cb1fce8628de2c1ca51a28fa07a1d336b9ecc561a7f3')
 
 prepare() {
   cd "$srcdir/$pkgname"
   sed -i 's|-Werror||g' configure.ac
   sed -i 's|#user=.*|user=minidlna|g' minidlna.conf
+  patch -p1 -i ../ffmpeg7.patch # Fix build with ffmpeg 7
 }
 
 build() {


=====================================
ffmpeg7.patch
=====================================
@@ -0,0 +1,13 @@
+diff --git a/libav.h b/libav.h
+index b69752c..aed9d18 100644
+--- a/libav.h
++++ b/libav.h
+@@ -174,7 +174,7 @@ lav_get_interlaced(AVStream *s)
+ #define lav_codec_tag(s) s->codecpar->codec_tag
+ #define lav_sample_rate(s) s->codecpar->sample_rate
+ #define lav_bit_rate(s) s->codecpar->bit_rate
+-#define lav_channels(s) s->codecpar->channels
++#define lav_channels(s) s->codecpar->ch_layout.nb_channels
+ #define lav_width(s) s->codecpar->width
+ #define lav_height(s) s->codecpar->height
+ #define lav_profile(s) s->codecpar->profile



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/minidlna/-/commit/f9394ee0b2ab5c732e484f8d908d26a675eb4b97

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/minidlna/-/commit/f9394ee0b2ab5c732e484f8d908d26a675eb4b97
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to