updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / jslint / PKGBUILD
blob3366ac520983dcbe85c017b04ecd311225e0d1e8
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 >
4 pkgname=jslint
5 pkgver=0.1.0
6 pkgrel=2
7 pkgdesc="Command-line JSLint, installed through npm"
8 arch=(any)
9 url="https://github.com/reid/node-jslint"
10 license=('Custom BSD')
11 depends=(nodejs)
12 makedepends=(nodejs-npm)
13 source=("https://github.com/reid/node-jslint/tarball/$pkgver")
14 noextract=()
15 sha256sums=("a7123e42a050ff10f0f351a09af6680555953bdedc051fbc4c0df30427807133")
17 package() {
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: