summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFoxboron2016-02-22 20:44:25 +0100
committerFoxboron2016-02-22 20:44:25 +0100
commit115699f788fbdcfc769d393719a50113ac0e8982 (patch)
treea992e5973bb9bd843b06f1298951db5ee918a695
downloadaur-115699f788fbdcfc769d393719a50113ac0e8982.tar.gz
Init
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD24
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4f81994e481
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Mon Feb 22 19:42:37 UTC 2016
+pkgbase = nodejs-how2
+ pkgdesc = how2 finds the simplest way to do something in a unix shell. It's like man, but you can query it in natural language:
+ pkgver = 1.0.5
+ pkgrel = 1
+ url = https://github.com/santinic/how2
+ arch = any
+ license = MIT
+ depends = nodejs
+ depends = npm
+ noextract = how2-1.0.5.tgz
+ source = http://registry.npmjs.org/how2/-/how2-1.0.5.tgz
+ sha256sums = 910db8b8c647b9bcc5d21822fbd2491c66179997560a9601d8ebb07c32cc2a2e
+
+pkgname = nodejs-how2
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..362712d7d17
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Morten Linderud <morten@linderud.pw>
+_npmname=how2
+_npmver=1.0.5
+pkgname=nodejs-how2
+pkgver=1.0.5
+pkgrel=1
+pkgdesc="how2 finds the simplest way to do something in a unix shell. It's like man, but you can query it in natural language:"
+arch=(any)
+url="https://github.com/santinic/how2"
+license=(MIT)
+depends=('nodejs' 'npm')
+optdepends=()
+source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz)
+noextract=($_npmname-$_npmver.tgz)
+sha256sums=('910db8b8c647b9bcc5d21822fbd2491c66179997560a9601d8ebb07c32cc2a2e')
+
+
+package() {
+ cd "$srcdir"
+ local _npmdir="$pkgdir/usr/lib/node_modules/"
+ mkdir -p "$_npmdir"
+ cd "$_npmdir"
+ npm install -g --prefix "$pkgdir/usr" $_npmname@$_npmver
+}