updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / foobnix-git / PKGBUILD
blobc88f6254d8158362cc7d38105d96fe5121049f63
1 # Maintainer: archtux <antonio.arias99999@gmail.com>
3 pkgname=foobnix-git
4 pkgver=20110225
5 pkgrel=1
6 pkgdesc="Music Player written in Python, GTK+ and Glade"
7 arch=('i686' 'x86_64')
8 url="http://www.foobnix.com/about/eng"
9 license=('GPL3')
10 depends=('dbus-python' 'gstreamer0.10-ffmpeg' 'gstreamer0.10-good-plugins' 'gstreamer0.10-python' 'gstreamer0.10-ugly-plugins' 'mutagen' 'pygtk' 'python-keybinder' 'python-simplejson' 'python2-chardet' 'python2-distribute')
11 makedepends=('gettext' 'git')
12 conflicts=('foobnix' 'foobnix-svn')
14 _gitname=foobnix
15 _gitroot=http://github.com/foobnix/foobnix.git
17 build() {
18   cd $srcdir
19   msg "Connecting to GIT server...."
20   rm  -rf $srcdir/$_gitname-build
22   if [ -d $_gitname ]; then
23    cd $_gitname
24    git pull origin
25     else
26    git clone $_gitroot
27      fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting build..."
32   cd $srcdir
33   cp -r $_gitname $_gitname-build
35   cd $_gitname-build/src
37   mkdir -p $pkgdir/usr/share/foobnix
38   python2 setup.py install --root=$pkgdir --optimize=1