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

Felix Yan felixonmars at archlinux.org
Fri Oct 21 03:13:57 UTC 2016


    Date: Friday, October 21, 2016 @ 03:13:57
  Author: felixonmars
Revision: 192758

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |  120 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 60 insertions(+), 60 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-21 03:12:42 UTC (rev 192757)
+++ PKGBUILD	2016-10-21 03:13:57 UTC (rev 192758)
@@ -1,60 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=npm
-pkgver=3.10.8
-pkgrel=1
-pkgdesc='A package manager for javascript'
-arch=('any')
-url='https://www.npmjs.com/'
-license=('custom:Artistic')
-depends=('nodejs' 'semver')
-provides=('nodejs-node-gyp')
-makedepends=('git' 'procps-ng' 'marked-man')
-optdepends=('python2: for node-gyp')
-options=('!emptydirs')
-source=("git+https://github.com/npm/npm.git#tag=v$pkgver")
-md5sums=('SKIP')
-
-prepare() {
-  cd npm
-  ln -s /usr/bin/marked{,-man} node_modules/.bin/
-}
-
-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 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
-  
-  # Provide node-gyp executable
-  cp "$pkgdir"/usr/lib/node_modules/npm/bin/node-gyp-bin/node-gyp "$pkgdir"/usr/bin/node-gyp
-  sed -i 's|"`dirname "$0"`/../../|"`dirname "$0"`/../lib/node_modules/npm/|' "$pkgdir"/usr/bin/node-gyp
-
-  # Experimental dedup
-  cd "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules
-  for dep in semver; do
-    rm -r $dep;
-    node "$srcdir"/npm/cli.js link $dep;
-  done
-  
-  install -Dm644 "$srcdir/npm/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: npm/repos/community-any/PKGBUILD (from rev 192757, npm/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2016-10-21 03:13:57 UTC (rev 192758)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=npm
+pkgver=3.10.9
+pkgrel=1
+pkgdesc='A package manager for javascript'
+arch=('any')
+url='https://www.npmjs.com/'
+license=('custom:Artistic')
+depends=('nodejs' 'semver')
+provides=('nodejs-node-gyp')
+makedepends=('git' 'procps-ng' 'marked-man')
+optdepends=('python2: for node-gyp')
+options=('!emptydirs')
+source=("git+https://github.com/npm/npm.git#tag=v$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cd npm
+  ln -s /usr/bin/marked{,-man} node_modules/.bin/
+}
+
+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 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
+  
+  # Provide node-gyp executable
+  cp "$pkgdir"/usr/lib/node_modules/npm/bin/node-gyp-bin/node-gyp "$pkgdir"/usr/bin/node-gyp
+  sed -i 's|"`dirname "$0"`/../../|"`dirname "$0"`/../lib/node_modules/npm/|' "$pkgdir"/usr/bin/node-gyp
+
+  # Experimental dedup
+  cd "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules
+  for dep in semver; do
+    rm -r $dep;
+    node "$srcdir"/npm/cli.js link $dep;
+  done
+  
+  install -Dm644 "$srcdir/npm/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list