Package Details: gerbera-git 2:1.9.2.r281.g6ed650c4-1

Git Clone URL: (read-only, click to copy)
Package Base: gerbera-git
Description: UPnP Media Server (Based on MediaTomb)
Upstream URL:
Licenses: GPL2
Conflicts: gerbera
Provides: gerbera
Submitter: bhedrich
Maintainer: Rogach
Last Packager: Rogach
Votes: 1
Popularity: 0.000000
First Submitted: 2017-08-05 18:25 (UTC)
Last Updated: 2021-12-25 17:26 (UTC)

Latest Comments

1 2 3 Next › Last »

Rogach commented on 2021-12-25 17:27 (UTC)

@FabioLolix That you for your suggestions!

I added the simpler pkgver function, and switched the cmake release type (don't see any adverse effects so far).

Can you clarify about "adding ${pkgver} to provide is not needed"? I have provides=(gerbera) here, but that seems to be explicitly suggested in VCS package guidelines.

FabioLolix commented on 2021-12-22 12:35 (UTC)


  • A standard pkgver like git describe --long --tags | sed 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' is enough, see
  • about cmake release type, None is suggested by the wiki (if available)
  • adding ${pkgver} to provide is not needed
  • Just FYI when you added epoch, epoch=1 was enough

Rogach commented on 2021-11-06 16:36 (UTC)

@dreieck Thank you for your suggestions! Updated the PKGBUILD with these fixes.

Does it really need to depend on libupnp-git, i.e. explicitly the -git variant?

It was the case previously (libupnp in the repos was much older) - but seems that now it builds fine with stock libupnp.

dreieck commented on 2021-11-03 13:22 (UTC) (edited on 2021-11-03 15:19 (UTC) by dreieck)

Some comments on your PKGBUILD (thanks for the maintanence work, btw.!):

  • Does it really need to depend on libupnp-git, i.e. explicitly the -git variant? Is libupnp not sufficient? (libupnp-git should provide libupnp, if not, write a comment that the provides-entry should be added.)
  • You could add -DCMAKE_BUILD_TYPE=Release.
  • There is some "official" package version available: git describe --tags reveals currently v1.9.2-123-g2d03e26c. So, please use the part currently reading 1.9.2-123 as first part in $pkgver. pkgver() then could look like:
  pkgver () {
    cd "${pkgname}"
    _ver="$(git describe  --tags | sed 's|^v||' | sed 's|-[^-]*$||' | tr '-' '.')"
    _rev="$(git rev-list --count HEAD)"
    _date="$(git log -1 --date=format:"%Y%m%d" --format="%ad")"
    _hash="$(git rev-parse --short HEAD)"

    if [ -z "${_ver}" ]; then
      error "Version could not be determined."
      return 1
      printf '%s' "${_ver}+r${_rev}.${_date}.${_hash}"

which currently yields - Then you also can add =${pkgver} to the provides-entry. - Don't forget to increment $epoch when changing package versioning scheme.

You could see my package gerbera-nosystemd-git for references.

kyak commented on 2020-05-06 16:49 (UTC)

Awesome, thanks!

Rogach commented on 2020-05-06 14:19 (UTC)

@kyak Done.

kyak commented on 2020-05-06 05:39 (UTC)

Can you please enable AVCODEC (File metadata) and FFMPEGTHUMNAILER (Generate video thumbnails) by adding these options to cmake:


And adding these packages to depends: 'ffmpeg' 'ffmpegthumbnailer'

kyak commented on 2020-03-15 09:08 (UTC)

And you should more than definitely switch to the official gerbera/gerbera.git.

Whyman is one of developers, and his branch can easily fall behind the master.

Just like at the time of this writing, his branch is three commits behind the master.

kyak commented on 2020-03-15 06:36 (UTC) (edited on 2020-03-15 06:37 (UTC) by kyak)

Also, if you want to use libupnp18 instead of libupnp, you need the following (similar to gerbera package):

sed -i 's/${PC_UPNP_LIBRARIES}//g' cmake/FindLibUpnp.cmake

kyak commented on 2020-03-14 09:36 (UTC)

The git version is missing the following deps: fmt, spdlog, pugixml,