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

Felix Yan felixonmars at gemini.archlinux.org
Fri Aug 19 12:17:43 UTC 2022


    Date: Friday, August 19, 2022 @ 12:17:43
  Author: felixonmars
Revision: 1270024

archrelease: copy trunk to community-staging-x86_64

Added:
  gerbera/repos/community-staging-x86_64/
  gerbera/repos/community-staging-x86_64/PKGBUILD
    (from rev 1270023, gerbera/trunk/PKGBUILD)
  gerbera/repos/community-staging-x86_64/gerbera-fmt-9.0.patch
    (from rev 1270023, gerbera/trunk/gerbera-fmt-9.0.patch)
  gerbera/repos/community-staging-x86_64/gerbera.install
    (from rev 1270023, gerbera/trunk/gerbera.install)
  gerbera/repos/community-staging-x86_64/gerbera.sysusers
    (from rev 1270023, gerbera/trunk/gerbera.sysusers)
  gerbera/repos/community-staging-x86_64/gerbera.tmpfiles
    (from rev 1270023, gerbera/trunk/gerbera.tmpfiles)

-----------------------+
 PKGBUILD              |   50 ++++++++++++++++++++++++++++++++++++++++++++++++
 gerbera-fmt-9.0.patch |   22 +++++++++++++++++++++
 gerbera.install       |   12 +++++++++++
 gerbera.sysusers      |    2 +
 gerbera.tmpfiles      |    4 +++
 5 files changed, 90 insertions(+)

Copied: gerbera/repos/community-staging-x86_64/PKGBUILD (from rev 1270023, gerbera/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-08-19 12:17:43 UTC (rev 1270024)
@@ -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.11.0
+pkgrel=2
+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"
+	gerbera-fmt-9.0.patch
+	gerbera.sysusers
+	gerbera.tmpfiles)
+sha256sums=('0c13049792a28ec0e3086ba61c7f9675626a1dbadb043650a452192727418be7'
+            '6d98004cfce2a44402f4fa2e961c160a6e789309c83b804551521f1688f18e79'
+            '0b55a4e1886f7aad0528446658433327815fd3f4d06e260518423f86dbe32dcc'
+            '452f5d4b5661e0262cb4a48d62a54f5f26d53c6d3aebf502cde072214a8b30d8')
+
+prepare() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	patch -Np1 -i ../gerbera-fmt-9.0.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-staging-x86_64/gerbera-fmt-9.0.patch (from rev 1270023, gerbera/trunk/gerbera-fmt-9.0.patch)
===================================================================
--- community-staging-x86_64/gerbera-fmt-9.0.patch	                        (rev 0)
+++ community-staging-x86_64/gerbera-fmt-9.0.patch	2022-08-19 12:17:43 UTC (rev 1270024)
@@ -0,0 +1,22 @@
+diff --git a/src/database/sql_format.h b/src/database/sql_format.h
+index 32dc00ef..e4e1909a 100644
+--- a/src/database/sql_format.h
++++ b/src/database/sql_format.h
+@@ -42,7 +42,7 @@ struct SQLIdentifier {
+ template <>
+ struct fmt::formatter<SQLIdentifier> : formatter<std::string_view> {
+     template <typename FormatContext>
+-    auto format(const SQLIdentifier& tn, FormatContext& ctx) -> decltype(ctx.out())
++    auto format(const SQLIdentifier& tn, FormatContext& ctx) const -> decltype(ctx.out())
+     {
+         return format_to(ctx.out(), "{}{}{}", tn.quote_begin, tn.name, tn.quote_end);
+     }
+@@ -61,7 +61,7 @@ struct ColumnUpdate {
+ template <>
+ struct fmt::formatter<ColumnUpdate> : formatter<std::string_view> {
+     template <typename FormatContext>
+-    auto format(const ColumnUpdate& a, FormatContext& ctx) -> decltype(ctx.out())
++    auto format(const ColumnUpdate& a, FormatContext& ctx) const -> decltype(ctx.out())
+     {
+         return format_to(ctx.out(), "{} = {}", a.column, a.value);
+     }

Copied: gerbera/repos/community-staging-x86_64/gerbera.install (from rev 1270023, gerbera/trunk/gerbera.install)
===================================================================
--- community-staging-x86_64/gerbera.install	                        (rev 0)
+++ community-staging-x86_64/gerbera.install	2022-08-19 12:17:43 UTC (rev 1270024)
@@ -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-staging-x86_64/gerbera.sysusers (from rev 1270023, gerbera/trunk/gerbera.sysusers)
===================================================================
--- community-staging-x86_64/gerbera.sysusers	                        (rev 0)
+++ community-staging-x86_64/gerbera.sysusers	2022-08-19 12:17:43 UTC (rev 1270024)
@@ -0,0 +1,2 @@
+u gerbera   -      "Gerbera daemon user" /var/lib/gerbera
+m gerbera video

Copied: gerbera/repos/community-staging-x86_64/gerbera.tmpfiles (from rev 1270023, gerbera/trunk/gerbera.tmpfiles)
===================================================================
--- community-staging-x86_64/gerbera.tmpfiles	                        (rev 0)
+++ community-staging-x86_64/gerbera.tmpfiles	2022-08-19 12:17:43 UTC (rev 1270024)
@@ -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