blob: a37d3f8b7d03ac7a7225912ef54b746afa472919 (
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
|
# parabola changes and rationale:
# - using a common nodejs packaging scheme
_npmname=semver-utils
pkgname=nodejs-$_npmname
pkgver=1.1.1
pkgrel=1
pkgdesc="Some utils that aren't provided by the mainstream semver module."
arch=('any')
url='https://www.npmjs.com/package/semver-utils'
license=('Apache')
depends=('nodejs')
makedepends=('npm')
source=("http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz")
noextract=($_npmname-$pkgver.tgz)
sha256sums=('cc692db6dcbbecd67ba8ce805cd1e6ac15e1858ded4c3149bcc926166132bfd2')
package() {
local _npmdir="$pkgdir/usr/lib/node_modules/"
mkdir -p "$_npmdir"
cd "$_npmdir"
npm install --verbose --debug -g --user root --prefix "$pkgdir/usr" \
"$srcdir"/$_npmname-$pkgver.tgz
rm -r "$pkgdir/usr/etc"
}
|