description="An iTunes-like music playback and management application"
url="https://www.rhythmbox.org"

packager="Tnut <tnut@nutyx.org>"
contributors="Jayce,Spiky"

makedepends=(gobject-introspection intltool gtk3 gdk-pixbuf libsoup libpeas
             libxml2 tdb json-glib totem-pl-parser libmtp webkitgtk
             python python-gobject)
run=(gsettings-desktop-schemas desktop-file-utils gtk-update-icon-cache
     gstreamer gstreamer-plugins-base gstreamer-plugins-good)

set=(gnome)

name=rhythmbox
version=3.4.6
release=2

source=(https://download.gnome.org/sources/$name/${version:0:3}/$name-$version.tar.xz)

prepare() {
       cd $name-$version
sed -i '/unsupported version of meson/d' meson.build
}

build() {
	cd $name-$version
	mkdir build
        cd    build

        meson --prefix=/usr

ninja
DESTDIR=$PKG ninja install

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