updated on Wed Jan 18 16:10:53 UTC 2012
[aur-mirror.git] / lewm-git / PKGBUILD
blobcfa1a4696385643b56b8dc2121d7e1f834227d70
1 pkgname=lewm-git
2 pkgver=20111207
3 pkgrel=1
4 pkgdesc="LEt fortune's Wheel help you to choose at the Moment"
5 arch=('any')
6 url="http://github.com/cdede/tcgmail/"
7 license=('GPL')
8 depends=('python2')
9 makedepends=('git' )
11 _gitroot="http://github.com/cdede/lewm.git"
12 _gitname="lewm"
14 build() {
15   cd "$srcdir"
16   msg "Connecting to GIT server...."
18   if [ -d $_gitname ] ; then
19     cd $_gitname && git pull origin
20     msg "The local files are updated."
21   else
22     git clone $_gitroot $_gitname
23   fi
25   msg "GIT checkout done or server timeout"
26   msg "Starting make..."
28   rm -rf "$srcdir/$_gitname-build"
29   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
30   cd "$srcdir/$_gitname-build"
32   python2 ./setup.py install --root=$pkgdir || return 1