summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMicha Alt2015-06-18 23:46:46 +0200
committerMicha Alt2015-06-18 23:46:46 +0200
commitab50f0f31f160379c6a8442f658fa0c2107092ec (patch)
tree7a3e347406fe2a0ff8a5876bbd42038c1adf0be8 /PKGBUILD
downloadaur-ab50f0f31f160379c6a8442f658fa0c2107092ec.tar.gz
Initial commit.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..11b06934f40
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Micha Alt <micha.tucker at gmail dot com>
+
+_npmname=broccoli-cli
+pkgname=nodejs-$_npmname
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="Global CLI for broccoli.js"
+arch=('any')
+url="http://broccolijs.com/"
+license=('MIT')
+depends=('nodejs')
+makedepends=('npm')
+source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz
+ 'LICENSE')
+noextract=($_npmname-$pkgver.tgz)
+md5sums=('173465398acd8664a30da24439ae6f08'
+ '4741c206fc73f1a664bdadd0e4cef754')
+
+package() {
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ cd "$srcdir"
+ local _npmdir="$pkgdir/usr/lib/node_modules/"
+ mkdir -p "$_npmdir"
+ cd "$_npmdir"
+ npm install --user root -g --prefix "$pkgdir/usr" $_npmname@$pkgver
+}
+