updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / jsure-git / PKGBUILD
blob8c81b6f9905cb2d9c98776e8893762b500bfa1e5
1 # Maintainer: Nicholas Ring <nring8@gmail.com>
3 pkgname="jsure-git"
4 pkgver=20110409
5 pkgrel=1
6 pkgdesc="A fast, standalone Javascript checker."
7 arch=('i686' 'x86_64')
8 url="https://github.com/berke/jsure"
9 license=('LGPL3')
10 depends=('ocaml')
11 makedepends=('git' 'aurochs-git')
12 provides=('jsure')
14 _gitroot="https://github.com/berke/jsure.git"
15 _gitname="jsure"
17 build() {
18     cd $srcdir
20     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
26     fi
28     msg "GIT checkout done or server timeout"
29     msg "Starting make..."
30     cd "$srcdir/$_gitname"
31     make clean
32     make || return 1
33     mkdir -p "$pkgdir/usr/bin" || return 1
34     PREFIX="$pkgdir/usr" make install