mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
75 lines
2.5 KiB
Bash
75 lines
2.5 KiB
Bash
# $Id$
|
|
# Maintainer: Jan de Groot <jgc@archlinux.org>
|
|
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - configure with --disable-more-warnings to silence -Wcast-align on 32bit
|
|
# - set !makeflags to build -j1 - RAM constraints with itstool
|
|
|
|
pkgname=rhythmbox
|
|
pkgver=3.4.2+4+ge123ad533
|
|
pkgrel=1
|
|
pkgdesc="Music playback and management application"
|
|
arch=(i686 x86_64)
|
|
license=(GPL)
|
|
url="https://wiki.gnome.org/Apps/Rhythmbox"
|
|
depends=(dconf gst-plugins-base gst-plugins-good libsoup json-glib libnotify libpeas
|
|
media-player-info totem-plparser tdb python-gobject libgudev grilo)
|
|
makedepends=(itstool intltool brasero gobject-introspection vala grilo libdmapsharing lirc libgpod
|
|
libmtp gtk-doc yelp-tools git)
|
|
checkdepends=(check xorg-server-xvfb)
|
|
optdepends=('gst-plugins-ugly: Extra media codecs'
|
|
'gst-plugins-bad: Extra media codecs'
|
|
'gst-libav: Extra media codecs'
|
|
'brasero: Audio CD Recorder plugin'
|
|
'libdmapsharing: DAAP Music Sharing plugin'
|
|
'grilo-plugins: Grilo media browser plugin'
|
|
'lirc: LIRC plugin'
|
|
'libgpod: Portable Players - iPod plugin'
|
|
'libmtp: Portable Players - MTP plugin'
|
|
'gvfs-mtp: Portable Players - Android plugin')
|
|
options=('!emptydirs' '!makeflags')
|
|
_commit=e123ad533503b231f68612fcb92884c0f391c5b0 # master
|
|
source=("git+https://git.gnome.org/browse/rhythmbox#commit=$_commit")
|
|
sha256sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd $pkgname
|
|
git describe --tags | sed 's/^v//;s/-/+/g'
|
|
}
|
|
|
|
prepare() {
|
|
cd $pkgname
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname
|
|
./configure --prefix=/usr --sysconfdir=/etc \
|
|
--libexecdir=/usr/lib/rhythmbox \
|
|
MOZILLA_PLUGINDIR=/usr/lib/epiphany/plugins \
|
|
--localstatedir=/var --disable-static \
|
|
--enable-daap --enable-python --enable-vala \
|
|
--enable-gtk-doc --disable-more-warnings
|
|
|
|
# https://bugzilla.gnome.org/show_bug.cgi?id=655517
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname
|
|
glib-compile-schemas --targetdir=tests --schema-file=data/org.gnome.rhythmbox.gschema.xml
|
|
GSETTINGS_BACKEND=memory \
|
|
GSETTINGS_SCHEMA_DIR="$PWD/tests" \
|
|
CK_TIMEOUT_MULTIPLIER=3 \
|
|
xvfb-run -a -n 63 -s '-extension GLX' make check
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname
|
|
make DESTDIR="$pkgdir" install
|
|
rm -r "$pkgdir/usr/lib/rhythmbox/sample-plugins"
|
|
rm -r "$pkgdir/usr/lib/rhythmbox/plugins/rbzeitgeist"
|
|
}
|