blob: 61b698f5f3677383a77568144363041522b19ad0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
_npmname=bootlint
pkgname=nodejs-bootlint
pkgver=1.1.0
pkgrel=1
pkgdesc="HTML linter for Bootstrap projects"
arch=(any)
url="https://github.com/twbs/bootlint"
license=(MIT)
depends=('nodejs' 'npm' )
source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
noextract=($_npmname-$pkgver.tgz)
package() {
cd $srcdir
local _npmdir="$pkgdir/usr/lib/node_modules/"
mkdir -p $_npmdir
cd $_npmdir
npm install -g --prefix "$pkgdir/usr" $_npmname@$pkgver
find "${pkgdir}"/usr -name package.json -exec sed -i '/"_where"/d' '{}' '+'
find "${pkgdir}"/usr -type d -exec chmod 755 {} +
}
sha256sums=('b7e7ebd8cef26fa41a6c474f5c237cbd1f41f9fecc2b0c804dba8f0d283487cc')
|