Node.js package guidelines
Package creation guidelines
CLR – Cross – Eclipse – Free Pascal – GNOME – Go – Haskell – Java – KDE – Kernel – Lisp – MinGW – Node.js – Nonfree – OCaml – Perl – PHP – Python – Ruby – VCS – Web – Wine
This document covers standards and guidelines on writing PKGBUILDs for Node.js packages.
Package naming
Package names should start with a nodejs-
prefix.
Using npm
When installing with npm, add it as a build dependency:
makedepends=('npm')
This is a minimal package
function:
package() { cd $srcdir/$pkgname-$pkgver npm install -g --user root --prefix "$pkgdir"/usr }