[arch-commits] Commit in phonegap/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Mar 18 18:51:24 UTC 2020
Date: Wednesday, March 18, 2020 @ 18:51:23
Author: felixonmars
Revision: 600642
upgpkg: phonegap 9.0.0-1
Modified:
phonegap/trunk/PKGBUILD
----------+
PKGBUILD | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-18 18:45:49 UTC (rev 600641)
+++ PKGBUILD 2020-03-18 18:51:23 UTC (rev 600642)
@@ -1,8 +1,8 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
pkgname=phonegap
-pkgver=8.2.2
-pkgrel=3
+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"
@@ -12,14 +12,19 @@
install=${pkgname}.install
source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
noextract=($pkgname-$pkgver.tgz)
-sha512sums=('40e536acd4620e9eaf8cfea8ea097a6b0bf9e38cd716dc345430949cc65dcf0e035ebb369cc47a2f85e664ea452e119320025ee7580827af967c19652cfd6845')
+sha512sums=('072b05307843eb42dfbf1a7c58f0a9dd43eb29ef5ef718e99771e741b78dd10c19d0d5704892b1fd4c1068a09ab8a1f1a7680241283cf31afa1e573aca75dea2')
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
More information about the arch-commits
mailing list