summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 55d85ddb4a070300d9385a244f7cc6ccc16ac020 (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=nomnoml-cli
_npmver=0.2.3
pkgname=nodejs-nomnoml-cli
pkgver=0.2.3
pkgrel=1
pkgdesc="Generates images from nomnoml diagram sources on the command line"
arch=(any)
url="https://github.com/prantlf/nomnoml-cli"
license=(MIT)
depends=('nodejs' 'npm' )
optdepends=()
source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz)
noextract=($_npmname-$_npmver.tgz)
sha1sums=(bb0cc08215a71714325e0fe82b5bc5a144f725c9)

package() {
  cd $srcdir
  local _npmdir="$pkgdir/usr/lib/node_modules/"
  mkdir -p $_npmdir
  cd $_npmdir
  npm install -g --prefix "$pkgdir/usr" $_npmname@$_npmver
}