blob: b46b2c0e82bff8ff828604e9390265c6e8cd691d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Maintainer: Nicola Squartini <tensor5@gmail.com>
pkgname=nodejs-jslinter
pkgver=1.5.47
pkgrel=1
pkgdesc='JSLint for Node.js'
arch=('any')
url='https://github.com/tensor5/JSLinter'
license=('MIT')
depends=('nodejs')
makedepends=('npm')
options=(!emptydirs)
package() {
npm install --user root -g --prefix="${pkgdir}"/usr jslinter@${pkgver}
install -d -m755 "${pkgdir}"/usr/share/bash-completion/completions
mv "${pkgdir}"/usr/lib/node_modules/jslinter/completion/jslint.bash \
"${pkgdir}"/usr/share/bash-completion/completions/jslint
install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
ln -s ../../../lib/node_modules/jslinter/LICENSE \
"${pkgdir}/usr/share/licenses/${pkgname}"
}
|