Date: Tuesday, March 6, 2018 @ 20:04:46
  Author: felixonmars
Revision: 303204

archrelease: copy trunk to community-testing-x86_64

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

------------------+
 PKGBUILD         |   29 +++++++++++++++++++++++++++++
 phonegap.install |    9 +++++++++
 2 files changed, 38 insertions(+)

Copied: phonegap/repos/community-testing-x86_64/PKGBUILD (from rev 303203, 
phonegap/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD                           (rev 0)
+++ community-testing-x86_64/PKGBUILD   2018-03-06 20:04:46 UTC (rev 303204)
@@ -0,0 +1,29 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+pkgname=phonegap
+pkgver=8.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=('acorn' 'semver' 'cordova' 'browserify')
+makedepends=('npm' 'python2')
+install=${pkgname}.install
+source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
+noextract=($pkgname-$pkgver.tgz)
+sha512sums=('603acfa6d0813c26ce2161f2da4184364b57d99a486006911c35378b5488931213a8a372b356be7bfc3086a06f974af42df59a200dc831d69cbe2f993cf2db5f')
+
+package() {
+  PYTHON=python2 npm install -g --user root --prefix "$pkgdir"/usr 
"$srcdir"/$pkgname-$pkgver.tgz
+  rm -r "$pkgdir"/usr/etc
+
+  # Experimental dedup
+  cd "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules
+  for dep in acorn semver cordova browserify; do
+    rm -r $dep;
+  done
+}
+
+# vim:set ts=2 sw=2 et:

Copied: phonegap/repos/community-testing-x86_64/phonegap.install (from rev 
303203, phonegap/trunk/phonegap.install)
===================================================================
--- community-testing-x86_64/phonegap.install                           (rev 0)
+++ community-testing-x86_64/phonegap.install   2018-03-06 20:04:46 UTC (rev 
303204)
@@ -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
+}

Reply via email to