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

Felix Yan felixonmars at archlinux.org
Wed Dec 11 08:53:05 UTC 2019


    Date: Wednesday, December 11, 2019 @ 08:53:05
  Author: felixonmars
Revision: 536749

upgpkg: babel-cli 7.7.5-1

Modified:
  babel-cli/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-11 08:52:12 UTC (rev 536748)
+++ PKGBUILD	2019-12-11 08:53:05 UTC (rev 536749)
@@ -4,28 +4,34 @@
 # Contributor: Peter Wu <lekensteyn at gmail dot com>
 
 pkgname=babel-cli
-pkgver=6.26.0
+pkgver=7.7.5
 pkgrel=1
 pkgdesc="A compiler for writing next generation JavaScript"
 arch=('any')
 url="https://babeljs.io/"
 license=('MIT')
-depends=('nodejs')
+depends=('nodejs' 'semver')
 makedepends=('npm')
 provides=('nodejs-babel-cli')
 conflicts=('nodejs-babel-cli' 'openbabel')
 replaces=('nodejs-babel-cli')
-source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz"
+source=("$pkgname-$pkgver.tgz::https://registry.npmjs.org/@babel/cli/-/@babel/cli-$pkgver.tgz"
         LICENSE)
 noextract=($pkgname-$pkgver.tgz)
-sha512sums=('c1abbe043b507ee481190f4fcf314bdd112f47d4b19dde0b2b0b5c1c088f8e1ba003b2bff34be91d769f8fe3b96c0a893ae49e7e33b1e59267352476275430e9'
+sha512sums=('cb662b3065ccdcd532bb5332834a7183e2f1ea0f17844caf2c760d4704c157a7c37a4dc7ec8a3a6fb37f2d7b1c2ece075a7e07c4c772edfdab335ad3329da616'
             'fc5471459770967e2632efb110b8370caa3424b7d87c1180f49605f7e6b1593746888b6c99c713c0c3046c5833c01c1a15bf3d549a343eaa077885bcc9f3d4e3')
 
 package() {
   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 '{}' +
+  rm -r "$pkgdir"/usr/lib/node_modules/@babel/cli/node_modules/{,.bin/}semver
+
+  # Non-deterministic race in npm gives 777 permissions to random directories.
+  # See https://github.com/npm/npm/issues/9359 for details.
+  chmod -R u=rwX,go=rX "$pkgdir"
+
+  # npm installs package.json owned by build user
+  # https://bugs.archlinux.org/task/63396
+  chown -R root:root "$pkgdir"
 }


More information about the arch-commits mailing list