[arch-commits] Commit in browserify/repos/community-any (3 files)

Levente Polyak anthraxx at archlinux.org
Fri Jan 12 12:43:54 UTC 2018


    Date: Friday, January 12, 2018 @ 12:43:49
  Author: anthraxx
Revision: 281568

archrelease: copy trunk to community-any

Added:
  browserify/repos/community-any/PKGBUILD
    (from rev 281567, browserify/trunk/PKGBUILD)
  browserify/repos/community-any/browserify.install
    (from rev 281567, browserify/trunk/browserify.install)
Deleted:
  browserify/repos/community-any/PKGBUILD

--------------------+
 PKGBUILD           |   60 +++++++++++++++++++++++++++------------------------
 browserify.install |    9 +++++++
 2 files changed, 41 insertions(+), 28 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-12 12:42:56 UTC (rev 281567)
+++ PKGBUILD	2018-01-12 12:43:49 UTC (rev 281568)
@@ -1,28 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=browserify
-pkgdesc='browser-side require() the node way'
-pkgver=15.1.0
-pkgrel=1
-arch=('any')
-url='http://browserify.org/'
-license=('MIT' 'BSD')
-depends=('nodejs' 'acorn')
-makedepends=('npm' 'git')
-source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
-noextract=($pkgname-$pkgver.tgz)
-sha512sums=('0ae95028189138537e12cb29870244638c160400aa591d48bfec3180ed06bce8b078b6f54708dae09fd76d30b1c758b14c32ba965814077886f1f1712c16c90c')
-
-package() {
-  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
-  rm -r "$pkgdir"/usr/etc
-  mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
-  ln -s "../../../lib/node_modules/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
-
-  # Experimental dedup
-  cd "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules
-  for dep in acorn; do
-    rm -r $dep;
-  done
-}

Copied: browserify/repos/community-any/PKGBUILD (from rev 281567, browserify/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-01-12 12:43:49 UTC (rev 281568)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=browserify
+pkgdesc='browser-side require() the node way'
+pkgver=15.1.0
+pkgrel=2
+arch=('any')
+url='http://browserify.org/'
+license=('MIT' 'BSD')
+depends=('nodejs' 'acorn')
+makedepends=('npm' 'git')
+source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
+noextract=($pkgname-$pkgver.tgz)
+install=browserify.install
+sha512sums=('0ae95028189138537e12cb29870244638c160400aa591d48bfec3180ed06bce8b078b6f54708dae09fd76d30b1c758b14c32ba965814077886f1f1712c16c90c')
+
+package() {
+  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+  rm -r "$pkgdir"/usr/etc
+  mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
+  ln -s "../../../lib/node_modules/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
+
+  # Experimental dedup
+  cd "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules
+  for dep in acorn; do
+    rm -r $dep;
+  done
+
+  # Fix npm security derp
+  find "$pkgdir/usr" -type d -exec chmod 755 '{}' +
+}

Copied: browserify/repos/community-any/browserify.install (from rev 281567, browserify/trunk/browserify.install)
===================================================================
--- browserify.install	                        (rev 0)
+++ browserify.install	2018-01-12 12:43:49 UTC (rev 281568)
@@ -0,0 +1,9 @@
+post_install() {
+  # fixup permissions
+  chmod 755 /usr/lib/node_modules
+  find /usr/lib/node_modules/browserify -type d -exec chmod 755 '{}' +
+}
+
+post_upgrade() {
+  post_install
+}



More information about the arch-commits mailing list