updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python2-cython-git / PKGBUILD
blob9d99dcef0381a3eadbaf869fce23da436649ad5c
1 # Maintainer: Gordin <9ordin @t gmail dot com>
2 pkgname=python2-cython-git
3 pkgver=20110722
4 pkgrel=1
5 pkgdesc="C-Extensions for Python - latest git master - python2 version"
6 arch=(i686 x86_64)
7 url="http://www.cython.org"
8 license=('APACHE')
9 depends=('python2')
10 makedepends=('git')
11 provides=(python2-cython cython)
12 conflicts=(python2-cython cython)
14 _gitroot="https://github.com/cython/cython.git"
15 _gitname="master"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot $_gitname --depth=1
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Starting make..."
31   rm -rf "$srcdir/$_gitname-build"
32   cp -R "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33   cd "$srcdir/$_gitname-build"
35   python2 setup.py install --root=$startdir/pkg || return 1