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

Felix Yan felixonmars at archlinux.org
Thu Mar 19 10:28:06 UTC 2020


    Date: Thursday, March 19, 2020 @ 10:28:06
  Author: felixonmars
Revision: 600755

upgpkg: cordova 9.0.0-1

Modified:
  cordova/trunk/PKGBUILD

----------+
 PKGBUILD |   15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-19 10:23:26 UTC (rev 600754)
+++ PKGBUILD	2020-03-19 10:28:06 UTC (rev 600755)
@@ -1,30 +1,35 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=cordova
-pkgver=8.1.2
+pkgver=9.0.0
 pkgrel=1
 pkgdesc='Cordova command line interface tool'
 arch=('any')
 url='https://cordova.apache.org'
 license=('Apache')
-depends=('npm' 'acorn' 'semver' 'browserify' 'uglify-js' 'eslint')
+depends=('npm' 'semver')
 install=cordova.install
 source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
 noextract=("$pkgname-$pkgver.tgz")
-sha512sums=('21fb2533730fe36080fde6d5255962b7a1614363fa15eadcc31f4d3508e456cd306a1130a9a98be1b72a87580a893b62efefd9b03b4145256646ffb2ecb7136e')
+sha512sums=('cd610fa3db868fd28d704854d8ba68debe0760adb5b4bf9ab78f7a3762cb9ee096b9656776fe9059e77cf84625ff4f2badc36c86b12d7f35e3f54c7abd09b63d')
 
 package() {
   npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
 
-  # Why 777? :/
+  # 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"
+
   # Delete npm installed pyc files
   find "$pkgdir" -name "*.pyc" -delete
 
   # Experimental dedup
   cd "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules
-  for dep in acorn semver browserify uglify-js eslint; do
+  for dep in semver; do
     rm -r $dep;
   done
 }



More information about the arch-commits mailing list