summarylogtreecommitdiffstats
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
downloadaur-4d922736e8a3993d15258ae505560028d1315452.tar.gz
Initial import
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD28
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..21897653d50
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = nodejs-generator-angular
+ pkgdesc = Yeoman generator for AngularJS
+ pkgver = 0.12.1
+ pkgrel = 1
+ url = https://github.com/yeoman/generator-angular
+ arch = any
+ license = BSD
+ depends = nodejs-yeoman
+ depends = nodejs-generator-karma
+ noextract = generator-angular-0.12.1.tgz
+ source = http://registry.npmjs.org/generator-angular/-/generator-angular-0.12.1.tgz
+ sha1sums = 3a8775464cfbac132c563b5229306dfbb7b777aa
+
+pkgname = nodejs-generator-angular
+
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: