[arch-commits] Commit in grunt-cli/trunk (PKGBUILD grunt-cli.install)

Levente Polyak anthraxx at archlinux.org
Wed Oct 26 01:28:00 UTC 2016


    Date: Wednesday, October 26, 2016 @ 01:28:00
  Author: anthraxx
Revision: 193386

fixing directory permissions

Added:
  grunt-cli/trunk/grunt-cli.install
Modified:
  grunt-cli/trunk/PKGBUILD

-------------------+
 PKGBUILD          |    1 +
 grunt-cli.install |   10 ++++++++++
 2 files changed, 11 insertions(+)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-26 01:23:41 UTC (rev 193385)
+++ PKGBUILD	2016-10-26 01:28:00 UTC (rev 193386)
@@ -16,6 +16,7 @@
 provides=('nodejs-grunt-cli')
 conflicts=('nodejs-grunt-cli')
 replaces=('nodejs-grunt-cli')
+install=${pkgname}.install
 source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
 noextract=($pkgname-$pkgver.tgz)
 sha256sums=('fdb1d4bd83435b3f70614b608e0027a0d75ebfda151396bb99c46405334a01d8')

Added: grunt-cli.install
===================================================================
--- grunt-cli.install	                        (rev 0)
+++ grunt-cli.install	2016-10-26 01:28:00 UTC (rev 193386)
@@ -0,0 +1,10 @@
+post_install() {
+  # fixup permissions
+  chmod 755 /usr/lib/node_modules \
+	  /usr/lib/node_modules/grunt-cli/node_modules \
+	  /usr/lib/node_modules/grunt-cli/node_modules/.bin
+}
+
+post_upgrade() {
+  post_install
+}



More information about the arch-commits mailing list