updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / python3-mpd-git / PKGBUILD
blob5530ddba3bc706d70487b9eedafcddae69555eb5
1 # Contributor: stonecrest <stonecrest[at]gmail[dot]com>
3 pkgname=python3-mpd-git
4 pkgver=20100901
5 pkgrel=2
6 pkgdesc="Python3 MPD client library"
7 url="http://pypi.python.org/pypi/python-mpd/"
8 depends=('python')
9 license=('GPL3')
10 arch=('i686' 'x86_64')
11 conflicts=('python3-mpd')
12 provides=('python3-mpd')
13 source=()
14 md5sums=()
16 _gitroot="http://github.com/nikolavp/python-mpd.git"
17 _gitname="python-mpd"
19 build() {
20     cd $srcdir
22     msg "Connecting to GIT server..."
24     if [ -d $srcdir/$_gitname ] ; then
25         cd $_gitname && git pull origin
26         msg "The local files are updated."
27     else
28         git clone $_gitroot
29     fi
31     msg "GIT checkout done or server timeout"
32     msg "Starting make..."
34     # Copy Latest files to Build Directory
35     cp -r $srcdir/$_gitname $srcdir/$_gitname-build
36     cd $srcdir/$_gitname-build
38     # Install
39     python3 setup.py install --root="$pkgdir" || return 1