updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / gereqi-git / PKGBUILD
blob1e56b4d37da924923c5cd4aa5cc1b297b6540410
1 # Contributor: realitygaps <realitygaps AT yahoo DOT com>
3 pkgname=gereqi-git
4 pkgver=20100624
5 pkgrel=1
6 pkgdesc="Gereqi media player"
7 arch=(any)
8 url=("http://code.google.com/p/gereqi/")
9 license=('GPL')
10 depends=('python' 'mutagen' 'python-lxml' 'cddb-py' 'pyinotify')
11 makedepends=()
12 provides=()
13 conflicts=()
14 replaces=()
15 backup=()
16 options=(!emptydirs)
17 install=
18 _gitroot="git://github.com/regomodo/Gereqi.git"
19 _gitname="Gereqi"
20 build() {
21   cd $srcdir
23   msg "Connecting to GIT server...."
25   if [ -d $_gitname ] ; then
26     cd $_gitname && git pull origin
27     msg "The local files are updated."
28   else
29     git clone $_gitroot $_gitname
30   fi
32   msg "GIT checkout done or server timeout"
33   msg "Starting make..."
35   rm -rf "$srcdir/$_gitname-build"
36   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37   cd "$srcdir/$_gitname-build"
40   python setup.py install --root=$pkgdir/ --optimize=1 || return 1
42   # Remember to install licenses if the license is not a common license!
43   # install -D -m644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE