summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 69b010d42bcd4083b05dae9fcb8426ff3f285b91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: John D Jones III AKA jnbek <jnbek1972 -_AT_- g m a i l -_Dot_- com>
_npmname=jison
pkgname=nodejs-jison # All lowercase
pkgver=0.4.15
pkgrel=1
pkgdesc="An API for creating parsers in JavaScript"
arch=(any)
url="https://github.com/zaach/jison"
license=(MIT)
depends=('nodejs' 'npm')
optdepends=()
source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
noextract=($_npmname-$pkgver.tgz)
sha1sums=('6c6336c43e76b13c7ce29f96898c8bdf4e1e38fa')

package() {
  cd $srcdir
  local _npmdir="$pkgdir/usr/lib/node_modules/"
  mkdir -p $_npmdir
  cd $_npmdir
  npm install -g --prefix "$pkgdir/usr" $_npmname@$pkgver
}
# vim:set ts=2 sw=2 et: