blob: d2098dfc63bd45dba11c0ca063b7ecedab3d0812 (
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
25
26
27
28
29
30
|
# Maintainer: James Pulec
_npmname=cspell
_npmver=8.1.0
pkgname=nodejs-cspell # All lowercase
pkgver=8.1.0
pkgrel=1
pkgdesc="A Spelling Checker for Code!"
arch=(any)
url="https://streetsidesoftware.github.io/cspell/"
license=('MIT')
depends=('nodejs' 'npm')
optdepends=()
source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz)
noextract=($_npmname-$_npmver.tgz)
sha1sums=(73c9e7e3c1bcac80915bc14aadb0d5ac60b5bc2c)
package() {
cd $srcdir
local _npmdir="$pkgdir/usr/lib/node_modules/"
mkdir -p $_npmdir
cd $_npmdir
npm install -g --prefix "$pkgdir/usr" $_npmname@$_npmver
# Install license
install -Dm 644 "${pkgdir}/usr/lib/node_modules/cspell/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
chown -R root:root "$pkgdir"
}
# vim:set ts=2 sw=2 et:
|