[arch-commits] Commit in cordova/repos (3 files)

Felix Yan felixonmars at archlinux.org
Wed Dec 20 01:33:54 UTC 2017


    Date: Wednesday, December 20, 2017 @ 01:33:53
  Author: felixonmars
Revision: 274964

archrelease: copy trunk to community-testing-any

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

-----------------+
 PKGBUILD        |   34 ++++++++++++++++++++++++++++++++++
 cordova.install |   10 ++++++++++
 2 files changed, 44 insertions(+)

Copied: cordova/repos/community-testing-any/PKGBUILD (from rev 274963, cordova/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2017-12-20 01:33:53 UTC (rev 274964)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=cordova
+pkgver=8.0.0
+pkgrel=1
+pkgdesc='Cordova command line interface tool'
+arch=('any')
+url='http://cordova.apache.org'
+license=('Apache')
+depends=('npm' 'acorn' 'semver' 'browserify')
+install=cordova.install
+source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
+noextract=("$pkgname-$pkgver.tgz")
+sha512sums=('907a94328f4decdad7cfcccb169f7e32c435cab5e742ead0fe6182e903c3dd321560fc4223fa7bc60c0a56067d0161ba7f7d85dd9874afbbaca919ad94678f89')
+
+package() {
+  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+  rm -r "$pkgdir"/usr/etc
+
+  # 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; do
+    rm -r $dep;
+  done
+
+  cd "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules/syntax-error/node_modules
+  for dep in acorn; do
+    rm -r $dep;
+  done
+}

Copied: cordova/repos/community-testing-any/cordova.install (from rev 274963, cordova/trunk/cordova.install)
===================================================================
--- community-testing-any/cordova.install	                        (rev 0)
+++ community-testing-any/cordova.install	2017-12-20 01:33:53 UTC (rev 274964)
@@ -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