1 # Contributor: Mark Harviston infinull@gmail.com
2 # Contributor: BlackEagle < ike DOT devolder AT gmail DOT com >
3 # based on: http://pastebin.com/deqgqjJe
7 pkgdesc="The Javascript Code Quality Tool"
9 url="http://jslint.com"
10 license=('(C)2002 Douglas Crockford')
13 author='Douglas Crockford'
15 md5sums=('0ef99d04b8dbef60de9004d3448e3000')
17 _gitroot="https://github.com/douglascrockford/JSLint.git"
23 msg "Connecting to GIT server...."
24 if [ -d ${_gitname} ] ; then
25 #cd ${_gitname} && git pull origin
26 msg "The local files are updated."
28 git clone ${_gitroot} ${_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"