[arch-commits] Commit in npm/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan fyan at archlinux.org
Fri Sep 4 03:44:30 UTC 2015


    Date: Friday, September 4, 2015 @ 05:44:30
  Author: fyan
Revision: 139181

archrelease: copy trunk to community-any

Added:
  npm/repos/community-any/PKGBUILD
    (from rev 139180, npm/trunk/PKGBUILD)
Deleted:
  npm/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   94 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 47 insertions(+), 47 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2015-09-04 03:44:15 UTC (rev 139180)
+++ PKGBUILD	2015-09-04 03:44:30 UTC (rev 139181)
@@ -1,47 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=npm
-pkgver=2.14.1
-pkgrel=1
-pkgdesc='A package manager for javascript'
-arch=('any')
-url='https://www.npmjs.com/'
-license=('custom:Artistic')
-depends=('nodejs')
-provides=('nodejs-node-gyp')
-makedepends=('git' 'procps-ng')
-optdepends=('python2: for node-gyp')
-options=('!emptydirs')
-source=("git+https://github.com/npm/npm.git#tag=v$pkgver")
-md5sums=('SKIP')
-
-build() {
-  cd npm
-  make
-}
-
-package() {
-  cd npm
-  make NPMOPTS="--prefix=\"$pkgdir/usr\"" install
-
-  # Why 777? :/
-  chmod -R u=rwX,go=rX "$pkgdir"
-  
-  # Fix files owned by nobody:
-  chown -R root "$pkgdir/usr/lib/node_modules" 
-
-  # Fix wrong symlinks
-  for _dir in man1 man3 man5 man7; do
-    rm -f "$pkgdir"/usr/share/man/$_dir/*
-    cd "$pkgdir"/usr/lib/node_modules/npm/man/$_dir
-    for _file in *; do
-      ln -s /usr/lib/node_modules/npm/man/$_dir/$_file "$pkgdir"/usr/share/man/$_dir/
-    done
-  done
-  
-  # Make symlink for node-gyp
-  ln -s /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js "$pkgdir"/usr/bin/node-gyp
-  
-  install -Dm644 "$srcdir/npm/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: npm/repos/community-any/PKGBUILD (from rev 139180, npm/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2015-09-04 03:44:30 UTC (rev 139181)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=npm
+pkgver=2.14.2
+pkgrel=1
+pkgdesc='A package manager for javascript'
+arch=('any')
+url='https://www.npmjs.com/'
+license=('custom:Artistic')
+depends=('nodejs')
+provides=('nodejs-node-gyp')
+makedepends=('git' 'procps-ng')
+optdepends=('python2: for node-gyp')
+options=('!emptydirs')
+source=("git+https://github.com/npm/npm.git#tag=v$pkgver")
+md5sums=('SKIP')
+
+build() {
+  cd npm
+  make
+}
+
+package() {
+  cd npm
+  make NPMOPTS="--prefix=\"$pkgdir/usr\"" install
+
+  # Why 777? :/
+  chmod -R u=rwX,go=rX "$pkgdir"
+  
+  # Fix files owned by nobody:
+  chown -R root "$pkgdir/usr/lib/node_modules" 
+
+  # Fix wrong symlinks
+  for _dir in man1 man3 man5 man7; do
+    rm -f "$pkgdir"/usr/share/man/$_dir/*
+    cd "$pkgdir"/usr/lib/node_modules/npm/man/$_dir
+    for _file in *; do
+      ln -s /usr/lib/node_modules/npm/man/$_dir/$_file "$pkgdir"/usr/share/man/$_dir/
+    done
+  done
+  
+  # Make symlink for node-gyp
+  ln -s /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js "$pkgdir"/usr/bin/node-gyp
+  
+  install -Dm644 "$srcdir/npm/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list