updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / rhythm-e / PKGBUILD
blobc4726af1922c7f16a4621961ba51e174d37c36a9
1 pkgname=rhythm-e
2 pkgver=41
3 pkgrel=2
4 pkgdesc="Elementary version of Rhythmbox"
5 arch=('i686' 'x86_64')
6 license=('GPL')
7 url="http://www.rhythmbox.org"
8 depends=('libsoup-gnome>=2.29.91' 'gnome-media>=2.29.91' 'totem-plparser>=2.29.92' 'musicbrainz>=2.1.5' 'libnotify>=0.4.5' 'desktop-file-utils' 'gstreamer0.10-python>=0.10.17' 'gstreamer0.10-base-plugins' 'gstreamer0.10-good-plugins' 'pygtk>=2.17.0' 'gvfs>=1.5.5' 'hicolor-icon-theme')
9 makedepends=('pkgconfig' 'gnome-doc-utils>=0.19.5' 'intltool' 'bzr' 'gnome-common')
10 optdepends=('gstreamer0.10-ugly-plugins: Extra media codecs'
11             'gstreamer0.10-bad-plugins: Extra media codecs'
12             'gstreamer0.10-ffmpeg: Extra media codecs'
13             'brasero: cd burning'
14             'gnome-python: various plugins'
15             'pywebkitgtk: context panel plugin'
16             'python-mako: context panel plugin')
17 provides=('rhythmbox')
18 conflicts=('rhythmbox')
19 options=('!libtool' '!emptydirs')
20 source=("gnome-media-profiles-fix.patch")
21 install=rhythm-e.install
23 _bzrmod=$pkgname
24 _bzrtrunk="https://code.launchpad.net/$pkgname"
26 build() {
28   if [ -d $_bzrmod ]; then
29     cd $_bzrmod && bzr up && cd ..
30   else
31     bzr co $_bzrtrunk
32   fi
34   cp -r ${srcdir}/${pkgname} ${srcdir}/${pkgname}-build
36   cd "${srcdir}/${pkgname}-build"
38   # fix naming issues for gnome-media-profiles
39   patch -Np1 -i "${srcdir}/gnome-media-profiles-fix.patch"
41   export PYTHONPATH="/usr/lib/python2.7"
42   ./autogen.sh --prefix=/usr --sysconfdir=/etc \
43       --libexecdir=/usr/lib/rhythmbox \
44       --localstatedir=/var --disable-static \
45       --enable-python \
46       --with-mdns=avahi --disable-scrollkeeper \
47       --disable-ayatana || return 1
49   # Disable compilation of ayatana plugin
50   # sed -i 's/ayatana//' plugins/Makefile || return 1
52   make
55 package() {
56   cd ${srcdir}/${pkgname}-build
57   make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install
59   install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
60   gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" --domain rhythmbox ${pkgdir}/etc/gconf/schemas/*.schemas
61   rm -f ${pkgdir}/etc/gconf/schemas/*.schemas
63   rm -rf ${srcdir}/${pkgname}-build
65 md5sums=('20cb09b20c8b83484e1f8914a38cffe9')