[arch-commits] Commit in phonegap/repos/community-x86_64 (4 files)

Felix Yan felixonmars at archlinux.org
Wed Mar 18 18:51:44 UTC 2020


    Date: Wednesday, March 18, 2020 @ 18:51:43
  Author: felixonmars
Revision: 600643

archrelease: copy trunk to community-x86_64

Added:
  phonegap/repos/community-x86_64/PKGBUILD
    (from rev 600642, phonegap/trunk/PKGBUILD)
  phonegap/repos/community-x86_64/phonegap.install
    (from rev 600642, phonegap/trunk/phonegap.install)
Deleted:
  phonegap/repos/community-x86_64/PKGBUILD
  phonegap/repos/community-x86_64/phonegap.install

------------------+
 PKGBUILD         |   71 ++++++++++++++++++++++++++++-------------------------
 phonegap.install |   18 ++++++-------
 2 files changed, 47 insertions(+), 42 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-18 18:51:23 UTC (rev 600642)
+++ PKGBUILD	2020-03-18 18:51:43 UTC (rev 600643)
@@ -1,33 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=phonegap
-pkgver=8.2.2
-pkgrel=3
-pkgdesc="PhoneGap command-line interface and node.js library"
-arch=('x86_64')
-url="https://github.com/phonegap/phonegap-cli"
-license=('Apache')
-depends=('semver' 'cordova')
-makedepends=('npm' 'python')
-install=${pkgname}.install
-source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
-noextract=($pkgname-$pkgver.tgz)
-sha512sums=('40e536acd4620e9eaf8cfea8ea097a6b0bf9e38cd716dc345430949cc65dcf0e035ebb369cc47a2f85e664ea452e119320025ee7580827af967c19652cfd6845')
-
-package() {
-  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
-
-  # Why 777? :/
-  chmod -R u=rwX,go=rX "$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 cordova; do
-    rm -r $dep;
-  done
-}
-
-# vim:set ts=2 sw=2 et:

Copied: phonegap/repos/community-x86_64/PKGBUILD (from rev 600642, phonegap/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-18 18:51:43 UTC (rev 600643)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=phonegap
+pkgver=9.0.0
+pkgrel=1
+pkgdesc="PhoneGap command-line interface and node.js library"
+arch=('x86_64')
+url="https://github.com/phonegap/phonegap-cli"
+license=('Apache')
+depends=('semver' 'cordova')
+makedepends=('npm' 'python')
+install=${pkgname}.install
+source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
+noextract=($pkgname-$pkgver.tgz)
+sha512sums=('072b05307843eb42dfbf1a7c58f0a9dd43eb29ef5ef718e99771e741b78dd10c19d0d5704892b1fd4c1068a09ab8a1f1a7680241283cf31afa1e573aca75dea2')
+
+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 cordova; do
+    rm -r $dep;
+  done
+}
+
+# vim:set ts=2 sw=2 et:

Deleted: phonegap.install
===================================================================
--- phonegap.install	2020-03-18 18:51:23 UTC (rev 600642)
+++ phonegap.install	2020-03-18 18:51:43 UTC (rev 600643)
@@ -1,9 +0,0 @@
-post_install() {
-  # fixup permissions
-  chmod 755 /usr/lib/node_modules
-  chmod -R g-w,o-w /usr/lib/node_modules/phonegap
-}
-
-post_upgrade() {
-  post_install
-}

Copied: phonegap/repos/community-x86_64/phonegap.install (from rev 600642, phonegap/trunk/phonegap.install)
===================================================================
--- phonegap.install	                        (rev 0)
+++ phonegap.install	2020-03-18 18:51:43 UTC (rev 600643)
@@ -0,0 +1,9 @@
+post_install() {
+  # fixup permissions
+  chmod 755 /usr/lib/node_modules
+  chmod -R g-w,o-w /usr/lib/node_modules/phonegap
+}
+
+post_upgrade() {
+  post_install
+}



More information about the arch-commits mailing list