summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorent H. CARRÉ2015-07-17 05:52:55 +0200
committerFlorent H. CARRÉ2015-07-17 05:52:55 +0200
commit113a4e7e6584ef0adb19f300dd4169db448875d9 (patch)
tree9703dcdf1ffd9afb535531b52785b0e281caa937
downloadaur-113a4e7e6584ef0adb19f300dd4169db448875d9.tar.gz
Initial import
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD30
-rw-r--r--nodejs-generator-gulp-angular.install12
3 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..98fec588c9f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = nodejs-generator-gulp-angular
+ pkgdesc = Yeoman generator for Gulp & Angular
+ pkgver = 0.12.1
+ pkgrel = 1
+ url = https://github.com/Swiip/generator-gulp-angular
+ install = nodejs-generator-gulp-angular.install
+ arch = any
+ license = MIT
+ depends = nodejs-yeoman
+ depends = nodejs-gulp
+ depends = nodejs-bower
+ optdepends = ruby-sass: needed to build ruby sass preprocessed projects
+ optdepends = java-runtime: needed to do e2e protractor tests
+ noextract = generator-gulp-angular-0.12.1.tgz
+ source = https://registry.npmjs.org/generator-gulp-angular/-/generator-gulp-angular-0.12.1.tgz
+ sha1sums = 873dc8d48f39456c03baf4b787fc9f1ca43eb715
+
+pkgname = nodejs-generator-gulp-angular
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..50009e91838
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer : Florent H. CARRÉ <colundrum@gmail.com>
+
+_npmname=generator-gulp-angular
+pkgname=nodejs-$_npmname
+pkgver=0.12.1
+pkgrel=1
+pkgdesc="Yeoman generator for Gulp & Angular"
+arch=('any')
+url="https://github.com/Swiip/generator-gulp-angular"
+license=('MIT')
+depends=('nodejs-yeoman' 'nodejs-gulp' 'nodejs-bower')
+optdepends=('ruby-sass: needed to build ruby sass preprocessed projects'
+ 'java-runtime: needed to do e2e protractor tests')
+source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
+noextract=($_npmname-$pkgver.tgz)
+sha1sums=('873dc8d48f39456c03baf4b787fc9f1ca43eb715')
+install=${pkgname}.install
+
+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
+ rm -rf "$pkgdir"/usr/bin
+ rm -rf "$pkgdir"/usr/lib/node_modules/yo
+}
+
+# vim:set ts=2 sw=2 et:
+
diff --git a/nodejs-generator-gulp-angular.install b/nodejs-generator-gulp-angular.install
new file mode 100644
index 00000000000..6fbcbd24b6a
--- /dev/null
+++ b/nodejs-generator-gulp-angular.install
@@ -0,0 +1,12 @@
+post_install() {
+cat << EOF
+ Breaking Change for versions >= 0.6.0:
+ Directory structure evolved to the recommendations from the Angular
+ team. Do not run this version of the generator on an existing project
+ generated with a previous version.
+EOF
+}
+
+post_upgrade() {
+ post_install
+}