summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d0ce95c3cd51f083a59fd9f746ce80196b2a7d3a (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Maintainer Kaleb Klein <apollyon156@proton.me>
# Contributor Adria Arrufat <swiftscythe@gmail.com>
# Contributor Limao Luo <luolimao+AUR@gmail.com>
# Contributor Thomas Dziedzic <gostrc@gmail.com>
# Contributor Jan de Groot <jgc@archlinux.org>
# Contributor Giovanni Scafora <giovanni@archlinux.org>

_pkgname=rhythmbox
pkgname=$_pkgname-git
pkgver=3.4.7+r17+gceeed5736
pkgrel=1
pkgdesc="Music playback and management application"
arch=(i686 x86_64)
license=(GPL)
url="https://wiki.gnome.org/Apps/Rhythmbox"
depends=(
  dconf
  grilo
  gst-plugins-base
  gst-plugins-good
  json-glib
  libgudev
  libnotify
  libpeas
  libsoup3
  media-player-info
  python-gobject
  tdb
  totem-pl-parser
)
optdepends=(
  'gst-plugins-ugly: Extra media codecs'
  'gst-plugins-bad: Extra media codecs'
  'gst-libav: Extra media codecs'
  'brasero: Audio CD Recorder plugin'
  'grilo-plugins: Grilo media browser plugin'
  'gvfs-mtp: Portable players - Android plugin'
  'libdmapsharing: DAAP Music Sharing plugin'
  'libgpod: Portable Players - iPod plugin'
  'libmtp: Portable Players - MTP plugin'
  'lirc: LRC plugin'
)
makedepends=(
  brasero
  git
  gobject-introspection
  gtk-doc
  libdmapsharing
  libgpod
  libmtp
  lirc
  meson
  vala
  yelp-tools
  zeitgeist
)
checkdepends=(check xorg-server-xvfb)
options=('!emptydirs')
provides=($_pkgname=$pkgver)
conflicts=($_pkgname)
source=($pkgname::git+https://gitlab.gnome.org/GNOME/$_pkgname)
sha256sums=('SKIP')

pkgver() {
    cd $pkgname
    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/+/g'
}

prepare() {
  cd "$srcdir/$pkgname"
}

build() {
  local meson_options=(
    -D daap=enabled
    -D gtk_doc=true
  )

  arch-meson $pkgname build "${mesa_options[@]}"
  meson compile -C build
}

check() {
  xvfb-run -s '-nolisten local' \
    meson test -C build --print-errorlogs -t 3
}

package() {
    meson install -C build --destdir "$pkgdir"

    python -m compileall -d /usr/lib "$pkgdir/usr/lib"
    python -O -m compileall -d /usr/lib "$pkgdir/usr/lib"
}