summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a3cdb153837620f08b1800a82ffc56abd91b75e (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
31
# Maintainer: Daniel Nagy <danielnagy at gmx de>
# Contributor: Nodejitsu Inc. <info@nodejitsu.com>
# Contributor: indexzero <charlie.robbins@gmail.com>
# Contributor: bradleymeck <bradley.meck@gmail.com>
# Contributor: avianflu <charlie@charlieistheman.com>
# Contributor: mmalecki <me@mmalecki.com>

_npmname=forever
pkgname=nodejs-forever # All lowercase
pkgver=1.0.0
pkgrel=1
pkgdesc="A simple CLI tool for ensuring that a given node script runs continuously (i.e. forever)"
arch=(any)
url="http://github.com/nodejitsu/forever"
license=()
depends=('nodejs' )
makedepends=('npm')
optdepends=()
source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
noextract=($_npmname-$pkgver.tgz)
sha256sums=('5849445709ed997096cadcb7f31d282156fe730549533767d24d47ee22b44e94')

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: