[arch-commits] Commit in (babel-cli babel-cli/trunk/PKGBUILD nodejs-babel-cli)

Felix Yan felixonmars at archlinux.org
Tue Oct 25 06:38:47 UTC 2016


    Date: Tuesday, October 25, 2016 @ 06:38:46
  Author: felixonmars
Revision: 193247

rename nodejs-babel-cli -> babel-cli

Added:
  babel-cli/
Modified:
  babel-cli/trunk/PKGBUILD
Deleted:
  nodejs-babel-cli/

----------+
 PKGBUILD |   27 ++++++++++-----------------
 1 file changed, 10 insertions(+), 17 deletions(-)

Modified: babel-cli/trunk/PKGBUILD
===================================================================
--- nodejs-babel-cli/trunk/PKGBUILD	2016-10-25 06:34:06 UTC (rev 193246)
+++ babel-cli/trunk/PKGBUILD	2016-10-25 06:38:46 UTC (rev 193247)
@@ -4,36 +4,29 @@
 # Contributor: Andy Weidenbaum <archbaum at gmail dot com>
 # Contributor: Peter Wu <lekensteyn at gmail dot com>
 
-_npmname=babel-cli
-pkgname=nodejs-$_npmname
-pkgver=6.16.0
+pkgname=babel-cli
+pkgver=6.18.0
 pkgrel=1
 pkgdesc="A compiler for writing next generation JavaScript"
 arch=('any')
 url="https://babeljs.io/"
 license=('MIT')
-depends=('nodejs' 'semver')
+depends=('nodejs')
 makedepends=('npm')
-source=("https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz"
+provides=('nodejs-babel-cli')
+conflicts=('nodejs-babel-cli')
+replaces=('nodejs-babel-cli')
+source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz"
         LICENSE)
-noextract=($_npmname-$pkgver.tgz)
-sha256sums=('a2413046a5e2e7ecaa00a6a6718823dd3f91099b02a6ab62605f4c3f5dee1ecc'
+noextract=($pkgname-$pkgver.tgz)
+sha256sums=('5ad8cbc0ce7e3a90dcaf3ff4997bb36f9f0a120154b62e8393eb3bb63e12a99f'
             '8a5a22eb7991f5a022b91273b2395c2342f56fb43deddd29c248efb40c8ad62c')
 
 package() {
-  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$_npmname-$pkgver.tgz
+  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
   rm -r "$pkgdir"/usr/etc
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 
   # Fix permissions
   find "$pkgdir/usr" -type d -exec chmod 755 '{}' +
-
-  # Experimental dedup
-  for dir in $_npmname/node_modules $_npmname/node_modules/semver-truncate/node_modules; do
-    cd "$pkgdir"/usr/lib/node_modules/$dir
-    for dep in semver; do
-      rm -r $dep;
-      npm link $dep;
-    done
-  done
 }



More information about the arch-commits mailing list