updated on Mon Jan 16 04:00:32 UTC 2012
[aur-mirror.git] / lci-git / PKGBUILD
blobd6e2040f8763ba15c47cdc78fb395698760d335c
1 # Maintainer: Gerardo Marset <gammer1994@gmail.com>
2 pkgname=lci-git
3 pkgver=20110725
4 pkgrel=1
5 pkgdesc="A simple and fast 1.2 lolcode interpreter written in C."
6 arch=('i686' 'x86_64')
7 url="http://icanhaslolcode.org/"
8 license=('GPL3')
9 makedepends=('git' 'cmake' 'python2')
10 provides=('lci')
11 conflicts=('lci')
13 _gitroot="https://github.com/justinmeza/lci.git"
14 _gitname="lci"
16 build() {
17   cd "$srcdir"
18   msg "Connecting to GIT server...."
20   if [ -d $_gitname ] ; then
21     cd $_gitname && git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot $_gitname
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf "$srcdir/$_gitname-build"
31   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32   cd "$srcdir/$_gitname-build"
34   python2 install.py --prefix="$pkgdir/usr"