summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ba8adf5762c0f9d8d9b98485a02fa23da8818243 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Maintainer: Pellegrino Prevete <pellegrinoprevete@gmail.com>

_pkgname="rygel"
pkgname="${_pkgname}-git"
pkgver=0.42.0+10+geb1bfdc6
pkgrel=1
epoch=1
pkgdesc="UPnP AV MediaServer and MediaRenderer"
_url="https://gitlab.gnome.org/GNOME/${_pkgname}"
url="https://wiki.gnome.org/Projects/Rygel"
arch=(x86_64)
license=(LGPL)
depends=(
  'gupnp'
  'gupnp-av'
  'gupnp-dlna'
  'libgee'
  'gtk3'
  'libunistring'
  'tracker3'
  'libmediaart'
  'gst-editing-services'
)
makedepends=(
  'vala'
  'gobject-introspection'
  'git'
  'meson')
optdepends=(
  'gst-plugins-base: Extra media codecs'
  'gst-plugins-good: Extra media codecs'
  'gst-plugins-bad: Extra media codecs'
  'gst-plugins-ugly: Extra media codecs'
  'gst-libav: Extra media codecs'
  'tracker3-miners: Share indexed media files')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
backup=(etc/rygel.conf)
source=("git+${_url}.git")
b2sums=('SKIP')

pkgver() {
  cd "${_pkgname}"
  git describe --tags | sed 's/^RYGEL//;s/^rygel-//;s/_/./g;s/-/+/g'
}

build() {
  arch-meson "${_pkgname}" build \
    -D plugins=external,gst-launch,lms,media-export,mpris,playbin,ruih,tracker3
  meson compile -C build
}

check() {
  meson test -C build --print-errorlogs
}

package() {
  DESTDIR="${pkgdir}" meson install -C build
}