updated on Sun Jan 22 08:00:21 UTC 2012
[aur-mirror.git] / lolcode-git / PKGBUILD
blob1e452df04e9127b93a36c57a72326c38a2485dac
1 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
2 pkgname=lolcode-git
3 pkgver=20100326
4 pkgrel=1
5 pkgdesc="LOLCODE interpreter written in C."
6 arch=('i686' 'x86_64')
7 url="http://www.icanhaslolcode.org"
8 license=('MIT')
9 makedepends=('git')
10 provides=('lolcode')
11 conflicts=('lolcode')
12 source=('LICENSE')
13 md5sums=('172f9112161f68d2680a214da42b3c86')
15 _gitroot="git://github.com/justinmeza/lolcode.git"
16 _gitname="lolcode"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   make || return 1
37   install -Dm755 lolcode ${pkgdir}/usr/bin/lolcode || return 1
38   install -Dm644 ${srcdir}/LICENSE \
39     ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1
40