updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python2-pyflakes_ast-git / PKGBUILD
blob74c940cc98e48326fbc9f0e5e59a4b0f0a0aae27
1 # Contributer: Piotr HusiatyƄski <phusiatynski@gmail.com>
3 pkgname="python2-pyflakes_ast-git"
4 pkgver=20101019
5 pkgrel=1
6 pkgdesc="faster smurfier pyflakes using _ast instead of compiler"
7 url="http://github.com/kevinw/pyflakes/tree/master"
8 depends=("python2")
9 makedepends=("git" "setuptools")
10 provides=("pyflakes" "pyflakes_ast-git")
11 conflicts=("pyflakes" "pyflakes_ast-git")
12 arch=("i686" "x86_64")
13 license=("custom")
15 _gitroot="git://github.com/kevinw/pyflakes.git "
16 _gitname="pyflakes"
18 build() {
19         cd $startdir/src
20         msg "Connecting to $_gitroot ..."
21         if [ -d $startdir/src/$_gitname ] ; then
22                 cd $_gitname && git pull origin
23                 msg "The local files are updated."
24         else
25                 git clone $_gitroot
26         fi
28         msg "GIT checkout done or server timeout"
29         msg "Starting make..."
31         cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
32         cd $startdir/src/$_gitname-build
34         python2 setup.py install --root=${pkgdir} || return 1
35         install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${_svnmod}/LICENSE