[arch-commits] Commit in cordova/repos/community-any (4 files)

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


    Date: Thursday, March 19, 2020 @ 10:28:26
  Author: felixonmars
Revision: 600756

archrelease: copy trunk to community-any

Added:
  cordova/repos/community-any/PKGBUILD
    (from rev 600755, cordova/trunk/PKGBUILD)
  cordova/repos/community-any/cordova.install
    (from rev 600755, cordova/trunk/cordova.install)
Deleted:
  cordova/repos/community-any/PKGBUILD
  cordova/repos/community-any/cordova.install

-----------------+
 PKGBUILD        |   62 ++++++++++++++++++++++++++++++------------------------
 cordova.install |   20 ++++++++---------
 2 files changed, 45 insertions(+), 37 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-19 10:28:06 UTC (rev 600755)
+++ PKGBUILD	2020-03-19 10:28:26 UTC (rev 600756)
@@ -1,27 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=cordova
-pkgver=8.1.2
-pkgrel=1
-pkgdesc='Cordova command line interface tool'
-arch=('any')
-url='http://cordova.apache.org'
-license=('Apache')
-depends=('npm' 'acorn' 'semver' 'browserify' 'uglify-js' 'eslint')
-install=cordova.install
-source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
-noextract=("$pkgname-$pkgver.tgz")
-sha512sums=('21fb2533730fe36080fde6d5255962b7a1614363fa15eadcc31f4d3508e456cd306a1130a9a98be1b72a87580a893b62efefd9b03b4145256646ffb2ecb7136e')
-
-package() {
-  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
-
-  # Why 777? :/
-  chmod -R u=rwX,go=rX "$pkgdir"
-
-  # Experimental dedup
-  cd "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules
-  for dep in acorn semver browserify uglify-js eslint; do
-    rm -r $dep;
-  done
-}

Copied: cordova/repos/community-any/PKGBUILD (from rev 600755, cordova/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-19 10:28:26 UTC (rev 600756)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=cordova
+pkgver=9.0.0
+pkgrel=1
+pkgdesc='Cordova command line interface tool'
+arch=('any')
+url='https://cordova.apache.org'
+license=('Apache')
+depends=('npm' 'semver')
+install=cordova.install
+source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
+noextract=("$pkgname-$pkgver.tgz")
+sha512sums=('cd610fa3db868fd28d704854d8ba68debe0760adb5b4bf9ab78f7a3762cb9ee096b9656776fe9059e77cf84625ff4f2badc36c86b12d7f35e3f54c7abd09b63d')
+
+package() {
+  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+
+  # 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 semver; do
+    rm -r $dep;
+  done
+}

Deleted: cordova.install
===================================================================
--- cordova.install	2020-03-19 10:28:06 UTC (rev 600755)
+++ cordova.install	2020-03-19 10:28:26 UTC (rev 600756)
@@ -1,10 +0,0 @@
-post_install() {
-  # fixup permissions
-  chmod 755 /usr/lib/node_modules \
-	  /usr/lib/node_modules/cordova/node_modules \
-	  /usr/lib/node_modules/cordova/node_modules/.bin
-}
-
-post_upgrade() {
-  post_install
-}

Copied: cordova/repos/community-any/cordova.install (from rev 600755, cordova/trunk/cordova.install)
===================================================================
--- cordova.install	                        (rev 0)
+++ cordova.install	2020-03-19 10:28:26 UTC (rev 600756)
@@ -0,0 +1,10 @@
+post_install() {
+  # fixup permissions
+  chmod 755 /usr/lib/node_modules \
+	  /usr/lib/node_modules/cordova/node_modules \
+	  /usr/lib/node_modules/cordova/node_modules/.bin
+}
+
+post_upgrade() {
+  post_install
+}



More information about the arch-commits mailing list