2 # Maintainer: Jan de Groot <jgc@archlinux.org>
3 # Contributor: Ben Mazer <blm@groknil.org>
4 # Contributor: Alexandre Rosenfeld <airmind@gmail.com>
9 pkgdesc="A music player written in C#"
12 url="http://www.muine-player.org/"
13 depends=('gnome-sharp>=2.24.0' 'gstreamer0.10-good-plugins' 'gstreamer0.10-base-plugins' 'desktop-file-utils' 'libgnomeui>=2.24.0' 'libid3tag' 'faad2>=2.7' 'ndesk-dbus-glib')
14 makedepends=('intltool' 'pkgconfig' 'gnome-icon-theme' 'git')
15 optdepends=('gstreamer0.10-ugly-plugins: Extra media codecs'
16 'gstreamer0.10-bad-plugins: Extra media codecs'
17 'gstreamer0.10-ffmpeg: Extra media codecs')
18 options=('!libtool' '!emptydirs' '!makeflags')
20 #source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/0.8/${pkgname}-${pkgver}.tar.bz2)
21 #md5sums=('28e561388de1deebc6336f936bc74a73')
23 _gitroot="git://git.gnome.org/muine"
29 msg "Connecting to git.gnome.org GIT server...."
31 if [ -d ${srcdir}/$_gitname ] ; then
32 cd $_gitname && git pull origin
33 msg "The local files are updated."
38 msg "GIT checkout done or server timeout"
39 msg "Starting make..."
42 export MONO_SHARED_DIR="${srcdir}/.wabi"
43 mkdir -p "${MONO_SHARED_DIR}"
45 git clone $_gitname $_gitname-build
46 cd ${srcdir}/$_gitname-build
48 #cd "${srcdir}/${pkgname}-${pkgver}"
49 ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
50 --disable-static --enable-gstreamer || return 1
52 make DESTDIR="${pkgdir}" GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 install || return 1
54 install -m755 plugins/TrayIcon.{dll,xml} "${pkgdir}/usr/lib/muine/plugins/" || return 1
55 install -m644 plugins/muine-tray-*.png "${pkgdir}/usr/lib/muine/plugins/" || return 1
57 install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
58 gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" ${pkgdir}/etc/gconf/schemas/*.schemas || return 1
59 rm -f ${pkgdir}/etc/gconf/schemas/*.schemas