summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9f4344e2b2e0df58fe57194aadf816a7e8ec1d28 (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
# Maintainer: Daniele Cocca <daniele.cocca@gmail.com>
_npmname=lambda
pkgname="nodejs-${_npmname}"
pkgver=0.8.5
pkgrel=1
pkgdesc="An effort to create the perfect programming language."
arch=('any')
url="https://github.com/71104/lambda"
license=('MIT')
depends=('nodejs' 'npm')
source=("https://registry.npmjs.org/${_npmname}/-/${_npmname}-${pkgver}.tgz")
noextract=("${_npmname}-${pkgver}.tgz")
sha256sums=('e92a80874b80dfac66bc54f4b0ce62e559f0d7f7ca2ea50bce5f1775b55dad2b')
options=('!emptydirs')

package() {
  local _npmdir="${pkgdir}/usr/lib/node_modules/"
  mkdir -p "${_npmdir}"
  cd "${_npmdir}"

  # It is not possible to package this inside a clean offline chroot due to
  # NPM bug #2568.
  npm install --user root -g --prefix "${pkgdir}/usr" "${_npmname}@${pkgver}"
}