[arch-commits] Commit in gerbera/repos (5 files)

Sergej Pupykin spupykin at gemini.archlinux.org
Wed Feb 23 00:58:02 UTC 2022


    Date: Wednesday, February 23, 2022 @ 00:58:02
  Author: spupykin
Revision: 1136206

archrelease: copy trunk to community-testing-x86_64

Added:
  gerbera/repos/community-testing-x86_64/
  gerbera/repos/community-testing-x86_64/PKGBUILD
    (from rev 1136205, gerbera/trunk/PKGBUILD)
  gerbera/repos/community-testing-x86_64/gerbera.install
    (from rev 1136205, gerbera/trunk/gerbera.install)
  gerbera/repos/community-testing-x86_64/gerbera.sysusers
    (from rev 1136205, gerbera/trunk/gerbera.sysusers)
  gerbera/repos/community-testing-x86_64/gerbera.tmpfiles
    (from rev 1136205, gerbera/trunk/gerbera.tmpfiles)

------------------+
 PKGBUILD         |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 gerbera.install  |   12 ++++++++++++
 gerbera.sysusers |    2 ++
 gerbera.tmpfiles |    4 ++++
 4 files changed, 68 insertions(+)

Copied: gerbera/repos/community-testing-x86_64/PKGBUILD (from rev 1136205, gerbera/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2022-02-23 00:58:02 UTC (rev 1136206)
@@ -0,0 +1,50 @@
+# 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=3
+pkgdesc="UPnP Media Server (Based on MediaTomb)"
+arch=(x86_64)
+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"
+	https://github.com/gerbera/gerbera/commit/82d84ac5e62c23e717198fc7b2ef190ff95e70d1.patch # fmt 8 support
+	gerbera.sysusers
+	gerbera.tmpfiles)
+sha256sums=('dee562cc5d22e8442e2fe1620b073bda612c80f9c4a8333311c647db06c1c4cd'
+            'a0bc6664e9c2bab50d1628b2c6560e0c8d33fdd18eb7f6763dd765fe80a6e909'
+            '0b55a4e1886f7aad0528446658433327815fd3f4d06e260518423f86dbe32dcc'
+            '452f5d4b5661e0262cb4a48d62a54f5f26d53c6d3aebf502cde072214a8b30d8')
+
+prepare() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	patch -Np1 -i ../82d84ac5e62c23e717198fc7b2ef190ff95e70d1.patch
+}
+
+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-testing-x86_64/gerbera.install (from rev 1136205, gerbera/trunk/gerbera.install)
===================================================================
--- community-testing-x86_64/gerbera.install	                        (rev 0)
+++ community-testing-x86_64/gerbera.install	2022-02-23 00:58:02 UTC (rev 1136206)
@@ -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-testing-x86_64/gerbera.sysusers (from rev 1136205, gerbera/trunk/gerbera.sysusers)
===================================================================
--- community-testing-x86_64/gerbera.sysusers	                        (rev 0)
+++ community-testing-x86_64/gerbera.sysusers	2022-02-23 00:58:02 UTC (rev 1136206)
@@ -0,0 +1,2 @@
+u gerbera   -      "Gerbera daemon user" /var/lib/gerbera
+m gerbera video

Copied: gerbera/repos/community-testing-x86_64/gerbera.tmpfiles (from rev 1136205, gerbera/trunk/gerbera.tmpfiles)
===================================================================
--- community-testing-x86_64/gerbera.tmpfiles	                        (rev 0)
+++ community-testing-x86_64/gerbera.tmpfiles	2022-02-23 00:58:02 UTC (rev 1136206)
@@ -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