updated on Fri Jan 20 04:00:45 UTC 2012
[aur-mirror.git] / jslint-git / PKGBUILD
blobfa7d6156f8d7dbd974f8a85ab29ca655321c99a9
1 # Contributor: Mark Harviston infinull@gmail.com
2 # Contributor: BlackEagle < ike DOT devolder AT gmail DOT com >
3 # based on: http://pastebin.com/deqgqjJe
4 pkgname=jslint-git
5 pkgver=20110314
6 pkgrel=1
7 pkgdesc="The Javascript Code Quality Tool"
8 arch=('any')
9 url="http://jslint.com"
10 license=('(C)2002 Douglas Crockford')
11 depends=('rhino')
12 makedepends=('git')
13 author='Douglas Crockford'
14 source=('jslint.sh')
15 md5sums=('0ef99d04b8dbef60de9004d3448e3000')
17 _gitroot="https://github.com/douglascrockford/JSLint.git"
18 _gitname=jslint
21 build() {
22         cd "${srcdir}"
23                 msg "Connecting to GIT server...."
24         if [ -d ${_gitname} ] ; then
25         #cd ${_gitname} && git pull origin
26                 msg "The local files are updated."
27         else
28                 git clone ${_gitroot} ${_gitname}
29         fi
31                 cd ${_gitname}
32                 git checkout d98f75307977f91aa25d4567e8ad1bdc043abae5
33         msg "GIT checkout done or server timeout"
34         msg "Starting make..."
36         install -m 644 -D "$srcdir/jslint/rhino.js" "$pkgdir/usr/share/jslint/rhino.js"
37         install -m 644 -D "$srcdir/jslint/fulljslint.js" "$pkgdir/usr/share/jslint/fulljslint.js"
38         install -D "$srcdir/jslint.sh" "$pkgdir/usr/bin/jslint"