1 # Maintainer: Michael Louis Thaler <michael.louis.thaler@gmail.com>
2 # Contributor: Mark Harviston infinull@gmail.com
3 # Contributor: BlackEagle < ike DOT devolder AT gmail DOT com >
7 pkgdesc="Command-line JSLint, installed through npm"
9 url="https://github.com/reid/node-jslint"
10 license=('Custom BSD')
12 makedepends=(nodejs-npm)
13 source=("https://github.com/reid/node-jslint/tarball/$pkgver")
15 sha256sums=("a7123e42a050ff10f0f351a09af6680555953bdedc051fbc4c0df30427807133")
18 _oldprefix=`npm config get prefix`
19 npm config set prefix "$pkgdir$_oldprefix"
21 npm install -g "$srcdir/reid-node-jslint-8ff383c"
22 chown -R root "$pkgdir$_oldprefix/lib/node_modules"
24 install -D -m644 "$srcdir/reid-node-jslint-8ff383c/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
26 npm config set prefix "$_oldprefix"
29 # vim:set ts=2 sw=2 et: