updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / banshee-git / PKGBUILD
blob4114068c4ecbdfc0e953b742473ca8b992fe9d26
1 # Maintainer: oke3 <Sekereg [at] gmx [dot] com>
2 # Contributor: Manuel Mazzuola <origin.of@gmail.com>
3 # Contributor: neuromante <lorenzo.nizzi.grifi@gmail.com>
5 pkgname=banshee-git
6 pkgver=20120109
7 pkgrel=1
8 arch=('i686' 'x86_64')
9 pkgdesc="Music management and playback for GNOME"
10 url="http://banshee.fm/"
11 license=('MIT')
12 depends=('libxxf86vm' 'gstreamer0.10-base-plugins' 'mono-addins' 'notify-sharp-svn' 'dbus-sharp-glib' 'boo' 'libwebkit' 'libsoup-gnome' 'gdata-sharp' 'taglib-sharp' 'gconf-sharp' 'libmtp' 'libgpod' 'mono-zeroconf' 'desktop-file-utils' 'hicolor-icon-theme' 'xdg-utils' 'media-player-info' 'gtk-sharp-beans-git' 'gudev-sharp-git' 'gkeyfile-sharp-git')
13 makedepends=('intltool' 'gnome-doc-utils' 'git')
14 optdepends=('gstreamer0.10-good-plugins: Extra media codecs'
15             'gstreamer0.10-ugly-plugins: Extra media codecs'
16             'gstreamer0.10-bad-plugins: Extra media codecs'
17             'gstreamer0.10-ffmpeg: Extra media codecs'
18             'brasero: CD burning')
19 options=('!libtool')
20 install=$pkgname.install
21 conflicts=('banshee')
22 provides=('banshee')
23 source=(banshee-recent-gpod.patch)
24 sha1sums=('693e5bb9993a2037b359e093419a62d815113e21')
26 _gitroot="git://git.gnome.org/banshee"
27 _gitname="banshee"
29 build() {
30 #    export MONO_SHARED_DIR="$srcdir/.wabi"
31 #    mkdir -p "$MONO_SHARED_DIR"
33     cd "$srcdir"
34     msg "Connecting to GIT server...."
36     if [[ -d "$_gitname" ]]; then
37         cd "$_gitname" && git pull origin && git submodule init && git submodule update
38         msg "The local files are updated."
39     else
40         git clone "$_gitroot" "$_gitname"
41     fi
43     msg "GIT checkout done or server timeout"
44     msg "Starting build..."
46     rm -rf "$srcdir/$_gitname-build"
47     git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
49     cd "$srcdir/$_gitname-build"
50     patch -Np1 -i "$srcdir/banshee-recent-gpod.patch"
52   ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
53               --disable-docs \
54               --disable-static \
55               --disable-scrollkeeper \
56               --disable-schemas-install \
57               --with-vendor-build-id=ArchLinux
59     make
62 package() {
63 #    export MONO_SHARED_DIR="$srcdir/.wabi"
64 #    mkdir -p "$MONO_SHARED_DIR"
66     cd "$srcdir/$_gitname-build"
68     make DESTDIR="$pkgdir" install
70     install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"