[arch-commits] Commit in minidlna/repos (3 files)
Antonio Rojas
arojas at gemini.archlinux.org
Fri Jan 28 18:43:32 UTC 2022
Date: Friday, January 28, 2022 @ 18:43:32
Author: arojas
Revision: 1118412
archrelease: copy trunk to community-staging-x86_64
Added:
minidlna/repos/community-staging-x86_64/
minidlna/repos/community-staging-x86_64/PKGBUILD
(from rev 1118411, minidlna/trunk/PKGBUILD)
minidlna/repos/community-staging-x86_64/minidlna.service
(from rev 1118411, minidlna/trunk/minidlna.service)
------------------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
minidlna.service | 17 +++++++++++++++++
2 files changed, 63 insertions(+)
Copied: minidlna/repos/community-staging-x86_64/PKGBUILD (from rev 1118411, minidlna/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-01-28 18:43:32 UTC (rev 1118412)
@@ -0,0 +1,46 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer:Biginoz < biginoz AT free point fr>
+# Contributor: Ignacio Galmarino <igalmarino at gmail.com>
+# Contributor: Matthias Sobczyk <matthias.sobczyk at googlemail.com>
+# Contributor: Kamil Kaminski <kyle at kkaminsk.com>
+
+pkgname=minidlna
+pkgver=1.3.0
+pkgrel=3
+pkgdesc="A DLNA/UPnP-AV Media server (aka ReadyDLNA)"
+arch=('x86_64')
+url="https://sourceforge.net/projects/minidlna/"
+license=('GPL')
+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')
+
+prepare() {
+ cd "$srcdir/$pkgname"
+ sed -i 's|-Werror||g' configure.ac
+ sed -i 's|#user=.*|user=minidlna|g' minidlna.conf
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
+ [ -x configure ] || ./autogen.sh
+ ac_cv_lib_id3tag__lz___id3_file_open=yes \
+ ac_cv_lib_avformat__lavcodec__lavutil__lz___avformat_open_input=yes \
+ ac_cv_lib_avformat__lavcodec__lavutil__lz___av_open_input_file=yes \
+ ./configure --prefix=/usr --sbindir=/usr/bin
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ DESTDIR="$pkgdir" make install
+ install -Dm644 minidlna.conf "$pkgdir"/etc/minidlna.conf
+ install -Dm0644 "$srcdir"/minidlna.service "$pkgdir"/usr/lib/systemd/system/minidlna.service
+ install -Dm644 "$srcdir"/$pkgname/minidlna.conf.5 "$pkgdir"/usr/share/man/man5/minidlna.conf.5
+ install -Dm644 "$srcdir"/$pkgname/minidlnad.8 "$pkgdir"/usr/share/man/man8/minidlnad.8
+}
Copied: minidlna/repos/community-staging-x86_64/minidlna.service (from rev 1118411, minidlna/trunk/minidlna.service)
===================================================================
--- community-staging-x86_64/minidlna.service (rev 0)
+++ community-staging-x86_64/minidlna.service 2022-01-28 18:43:32 UTC (rev 1118412)
@@ -0,0 +1,17 @@
+[Unit]
+Description=minidlna server
+After=network.target
+
+[Service]
+Type=exec
+DynamicUser=yes
+ExecStart=/usr/bin/minidlnad -S
+RuntimeDirectory=minidlna
+CacheDirectory=minidlna
+ProtectSystem=full
+ProtectHome=on
+PrivateDevices=on
+NoNewPrivileges=on
+
+[Install]
+WantedBy=multi-user.target
More information about the arch-commits
mailing list