summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFlorent H. CARRÉ2015-07-17 06:09:40 +0200
committerFlorent H. CARRÉ2015-07-17 06:09:40 +0200
commit4d922736e8a3993d15258ae505560028d1315452 (patch)
treee28e8ae6b0aaa91ce50ba0105ba3c11e53b75db9 /PKGBUILD
downloadaur-4d922736e8a3993d15258ae505560028d1315452.tar.gz
Initial import
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..be9a9e6ef43
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer : Florent H. CARRÉ <colundrum@gmail.com>
+
+_npmname=generator-angular
+_npmver=0.12.1
+pkgname=nodejs-generator-angular
+pkgver=0.12.1
+pkgrel=1
+pkgdesc="Yeoman generator for AngularJS"
+arch=(any)
+url="https://github.com/yeoman/generator-angular"
+license=(BSD)
+depends=('nodejs-yeoman' 'nodejs-generator-karma')
+optdepends=()
+source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz)
+noextract=($_npmname-$_npmver.tgz)
+sha1sums=(3a8775464cfbac132c563b5229306dfbb7b777aa)
+
+package() {
+ cd "$srcdir"
+ local _npmdir="$pkgdir/usr/lib/node_modules/"
+ mkdir -p "$_npmdir"
+ cd "$_npmdir"
+ npm install -g --prefix "$pkgdir/usr" $_npmname@$_npmver
+ rm -rf "$pkgdir"/usr/bin
+ rm -rf "$pkgdir"/usr/lib/node_modules/{grunt-cli,bower,yo,generator-karma}
+}
+
+# vim:set ts=2 sw=2 et: