diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = nodejs-jshint pkgdesc = Static analysis tool for JavaScript pkgver = 2.11.0 - pkgrel = 3 + pkgrel = 4 url = https://jshint.com/ arch = any license = MIT @@ -4,7 +4,7 @@ _npmname=jshint pkgname=nodejs-"$_npmname" pkgver=2.11.0 -pkgrel=3 +pkgrel=4 pkgdesc='Static analysis tool for JavaScript' arch=('any') url='https://jshint.com/' @@ -16,7 +16,7 @@ sha256sums=('1a7fa84101fb2212110a41543e88bca26d3b9762bce63c95627ac0dbdf4d5a3a') noextract=("${source[@]##*/}") package() { - npm install -g --user root --cache "${srcdir}/npm-cache" --prefix "$pkgdir/usr" "${source[0]}" + npm install -g --user root --cache "${srcdir}/npm-cache" --prefix "$pkgdir/usr" "${source[@]##*/}" find "${pkgdir}"/usr -type d -exec chmod 755 {} + find "${pkgdir}" -type f -name package.json -exec sed -i -e '/_where/d' {} \; chown -R root:root $pkgdir |