[arch-commits] Commit in gerbera/repos (5 files)
Sergej Pupykin
spupykin at gemini.archlinux.org
Sat Nov 20 17:55:43 UTC 2021
Date: Saturday, November 20, 2021 @ 17:55:42
Author: spupykin
Revision: 1052887
archrelease: copy trunk to community-x86_64
Added:
gerbera/repos/community-x86_64/
gerbera/repos/community-x86_64/PKGBUILD
(from rev 1052886, gerbera/trunk/PKGBUILD)
gerbera/repos/community-x86_64/gerbera.install
(from rev 1052886, gerbera/trunk/gerbera.install)
gerbera/repos/community-x86_64/gerbera.sysusers
(from rev 1052886, gerbera/trunk/gerbera.sysusers)
gerbera/repos/community-x86_64/gerbera.tmpfiles
(from rev 1052886, gerbera/trunk/gerbera.tmpfiles)
------------------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
gerbera.install | 12 ++++++++++++
gerbera.sysusers | 2 ++
gerbera.tmpfiles | 4 ++++
4 files changed, 61 insertions(+)
Copied: gerbera/repos/community-x86_64/PKGBUILD (from rev 1052886, gerbera/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2021-11-20 17:55:42 UTC (rev 1052887)
@@ -0,0 +1,43 @@
+# Maintainer: Sergej Pupykin <arch+pub at sergej.pp.ru>
+# Contributor: sulaweyo <sledge.sulaweyo at gmail.com>
+# Contributor: Francois Menning <f.menning at pm.me>
+
+pkgname=gerbera
+pkgver=1.9.2
+pkgrel=1
+pkgdesc="UPnP Media Server (Based on MediaTomb)"
+arch=(i686 x86_64 armv7h aarch64)
+url="https://github.com/gerbera/gerbera"
+license=('GPL2')
+depends=('taglib' 'curl' 'sqlite' 'file' 'gcc-libs' 'libupnp' 'duktape' 'libexif' 'fmt'
+ 'pugixml' 'spdlog' 'ffmpeg' 'ffmpegthumbnailer' 'libmatroska')
+optdepends=('libmariadbclient')
+makedepends=('cmake')
+install=gerbera.install
+options=('emptydirs')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/gerbera/gerbera/archive/v$pkgver.tar.gz"
+ gerbera.sysusers
+ gerbera.tmpfiles)
+sha256sums=('dee562cc5d22e8442e2fe1620b073bda612c80f9c4a8333311c647db06c1c4cd'
+ '0b55a4e1886f7aad0528446658433327815fd3f4d06e260518423f86dbe32dcc'
+ '452f5d4b5661e0262cb4a48d62a54f5f26d53c6d3aebf502cde072214a8b30d8')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ # Gerbera build options can be found here: https://github.com/gerbera/gerbera/blob/master/CMakeLists.txt
+ # use sqlite backend
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DWITH_AVCODEC=1 -DWITH_FFMPEGTHUMBNAILER=1 .
+ # use mysql backend - requires libmariadbclient
+ #cmake -DCMAKE_INSTALL_PREFIX=/usr -DWITH_AVCODEC=1 -DWITH_FFMPEGTHUMBNAILER=1 -DWITH_MYSQL=1 .
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}/" install
+
+ install -dm0755 "${pkgdir}"/var/lib/gerbera
+ install -dm0755 "${pkgdir}"/etc/gerbera
+ install -Dm0644 "${srcdir}/${pkgname}".tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
+ install -Dm0644 "${srcdir}/${pkgname}".sysusers "${pkgdir}"/usr/lib/sysusers.d/gerbera.conf
+}
Copied: gerbera/repos/community-x86_64/gerbera.install (from rev 1052886, gerbera/trunk/gerbera.install)
===================================================================
--- community-x86_64/gerbera.install (rev 0)
+++ community-x86_64/gerbera.install 2021-11-20 17:55:42 UTC (rev 1052887)
@@ -0,0 +1,12 @@
+post_install() {
+ echo ":: You need to generate a configuration file before running gerbera, e.g.:"
+ echo " gerbera --create-config | sudo tee /etc/gerbera/config.xml"
+ echo " chown -R gerbera:gerbera /etc/gerbera"
+ echo ":: Make sure <home> points to /etc/gerbera in /etc/gerbera/config.xml:"
+ echo " <home>/etc/gerbera</home>"
+}
+
+post_upgrade() {
+ echo ":: Version 1.2.0-3 of gerbera switched to the packages systemd unit."
+ echo " Please check your config before you start gerbera."
+}
Copied: gerbera/repos/community-x86_64/gerbera.sysusers (from rev 1052886, gerbera/trunk/gerbera.sysusers)
===================================================================
--- community-x86_64/gerbera.sysusers (rev 0)
+++ community-x86_64/gerbera.sysusers 2021-11-20 17:55:42 UTC (rev 1052887)
@@ -0,0 +1,2 @@
+u gerbera - "Gerbera daemon user" /var/lib/gerbera
+m gerbera video
Copied: gerbera/repos/community-x86_64/gerbera.tmpfiles (from rev 1052886, gerbera/trunk/gerbera.tmpfiles)
===================================================================
--- community-x86_64/gerbera.tmpfiles (rev 0)
+++ community-x86_64/gerbera.tmpfiles 2021-11-20 17:55:42 UTC (rev 1052887)
@@ -0,0 +1,4 @@
+d /var/lib/gerbera 0750
+Z /var/lib/gerbera - gerbera gerbera
+z /etc/gerbera 0755 gerbera gerbera
+z /etc/gerbera/config.xml 0660 gerbera gerbera
More information about the arch-commits
mailing list