summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Finelli2015-07-03 09:40:36 -0400
committerMario Finelli2015-07-03 09:40:36 -0400
commit2d9dec65f5f714950979854ae542c1bedec96cc6 (patch)
tree5161148ccec26bba28bc70ab26e48d6a4a3d3399
downloadaur-2d9dec65f5f714950979854ae542c1bedec96cc6.tar.gz
Initial import
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD22
3 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7d24cb3e483
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = nodejs-express-generator
+ pkgdesc = Express' application generator.
+ pkgver = 4.12.4
+ pkgrel = 1
+ url = http://expressjs.com
+ arch = any
+ license = MIT
+ depends = nodejs
+ depends = npm
+ noextract = express-generator-4.12.4.tgz
+ source = https://registry.npmjs.org/express-generator/-/express-generator-4.12.4.tgz
+ sha256sums = c45afd57c7d04d310f9f179477b06b4e32e7864f43ed8f86f1ff079c159ad419
+
+pkgname = nodejs-express-generator
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..f71c635dafd
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!.gitignore
+!PKGBUILD
+!.SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9164bcd272c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Mario Finelli <mario dot finelli at yahoo dot com>
+
+_npmname=express-generator
+pkgname=nodejs-$_npmname
+pkgver=4.12.4
+pkgrel=1
+pkgdesc="Express' application generator."
+arch=('any')
+url="http://expressjs.com"
+license=('MIT')
+depends=('nodejs' 'npm')
+source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
+noextract=($_npmname-$pkgver.tgz)
+sha256sums=('c45afd57c7d04d310f9f179477b06b4e32e7864f43ed8f86f1ff079c159ad419')
+
+package() {
+ cd "$srcdir"
+ local _npmdir="$pkgdir/usr/lib/node_modules/"
+ mkdir -p "$_npmdir"
+ cd "$_npmdir"
+ npm install --user root -g --prefix "$pkgdir/usr" $_npmname@$pkgver
+}