updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / mpy-git / PKGBUILD
blob50a49e8918d806607631a912a4239aaaa9ae9aef
1 # Contributor: Cyker Way <cykerway at gmail dot com>
3 pkgname=(mpy-git)
4 pkgver=20110907
5 pkgrel=1
6 pkgdesc="A [Python + Curses]-based MPD client."
7 arch=(any)
8 url="http://mpy.cykerway.com/"
9 license=(GPL3)
10 depends=('python2' 'python2-httplib2' 'python-mpd' 'python-lxml' 'pyosd')
11 makedepends=('git')
12 provides=('mpy')
13 conflicts=('mpy')
14 source=()
15 noextract=()
17 _gitroot="git://github.com/cykerway/mpy.git"
18 _gitname="master"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [[ -d "$_gitname" ]]; then
25     cd "$_gitname" && git pull origin
26     msg "The local files are updated."
27   else
28     git clone "$_gitroot" "$_gitname"
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting build..."
34   rm -rf "$srcdir/$_gitname-build"
35   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36   cd "$srcdir/$_gitname-build"
38   #
39   # BUILD HERE
40   #
41   # Nothing to be done.
44 package() {
45   cd "$srcdir/$_gitname-build"
46   python2 setup.py install --root="$pkgdir/" --optimize=1
49 # vim:set ts=2 sw=2 et: