[arch-commits] Commit in apm/repos (16 files)

Nicola Squartini tensor5 at archlinux.org
Fri Oct 28 10:27:38 UTC 2016


    Date: Friday, October 28, 2016 @ 10:27:38
  Author: tensor5
Revision: 193883

archrelease: copy trunk to community-i686, community-x86_64

Added:
  apm/repos/community-i686/PKGBUILD
    (from rev 193882, apm/trunk/PKGBUILD)
  apm/repos/community-i686/apm.js
    (from rev 193882, apm/trunk/apm.js)
  apm/repos/community-i686/no-scripts.patch
    (from rev 193882, apm/trunk/no-scripts.patch)
  apm/repos/community-i686/use-system-npm.patch
    (from rev 193882, apm/trunk/use-system-npm.patch)
  apm/repos/community-x86_64/PKGBUILD
    (from rev 193882, apm/trunk/PKGBUILD)
  apm/repos/community-x86_64/apm.js
    (from rev 193882, apm/trunk/apm.js)
  apm/repos/community-x86_64/no-scripts.patch
    (from rev 193882, apm/trunk/no-scripts.patch)
  apm/repos/community-x86_64/use-system-npm.patch
    (from rev 193882, apm/trunk/use-system-npm.patch)
Deleted:
  apm/repos/community-i686/PKGBUILD
  apm/repos/community-i686/apm.js
  apm/repos/community-i686/no-scripts.patch
  apm/repos/community-i686/use-system-npm.patch
  apm/repos/community-x86_64/PKGBUILD
  apm/repos/community-x86_64/apm.js
  apm/repos/community-x86_64/no-scripts.patch
  apm/repos/community-x86_64/use-system-npm.patch

---------------------------------------+
 /PKGBUILD                             |  190 ++++++++++++++++++++++++++++++++
 /apm.js                               |   28 ++++
 /no-scripts.patch                     |   32 +++++
 /use-system-npm.patch                 |   64 ++++++++++
 community-i686/PKGBUILD               |   95 ----------------
 community-i686/apm.js                 |   14 --
 community-i686/no-scripts.patch       |   16 --
 community-i686/use-system-npm.patch   |   32 -----
 community-x86_64/PKGBUILD             |   95 ----------------
 community-x86_64/apm.js               |   14 --
 community-x86_64/no-scripts.patch     |   16 --
 community-x86_64/use-system-npm.patch |   32 -----
 12 files changed, 314 insertions(+), 314 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2016-10-28 10:27:06 UTC (rev 193882)
+++ community-i686/PKGBUILD	2016-10-28 10:27:38 UTC (rev 193883)
@@ -1,95 +0,0 @@
-# $Id$
-# Maintainer: Nicola Squartini <tensor5 at gmail.com>
-
-pkgname=apm
-pkgver=1.13.0
-pkgrel=1
-pkgdesc='Atom package manager'
-arch=('i686' 'x86_64')
-url='https://github.com/atom/apm'
-license=('MIT')
-depends=('libgnome-keyring' 'npm' 'python2')
-makedepends=('coffee-script' 'git')
-provides=('nodejs-atom-package-manager')
-conflicts=('nodejs-atom-package-manager')
-replaces=('nodejs-atom-package-manager')
-options=(!emptydirs)
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/atom/apm/archive/v${pkgver}.tar.gz"
-        'apm.js'
-        'no-scripts.patch'
-        'use-system-npm.patch')
-sha256sums=('856b08b734a74a43da369037983c29e05d83d2e7bcf8c938bf4f3f95d7c72da4'
-            '0eb50358109c7acb4f750ce278323c1d5b86baea5841d5166cf4342a3edf2898'
-            '0f61369526d013b001f116b0fbbfd8564377c56962057135d2633e84d31a1562'
-            'c6bf548e5850d9699b4bf662eee33aca628c62ab9c92f9216e8fe33b0012990c')
-
-_apmdir='/usr/lib/node_modules/atom-package-manager'
-
-prepare() {
-  rm -rf "${srcdir}"/apm-build
-
-  cd apm-${pkgver}
-
-  # Use custom launcher
-  rm bin/apm{,.cmd} bin/npm{,.cmd}
-  rm src/cli.coffee
-  install -m755 "${srcdir}"/apm.js bin/apm
-
-  # Don't download binary Node
-  patch -Np1 -i "${srcdir}"/no-scripts.patch
-  rm BUNDLED_NODE_VERSION script/*
-
-  # Use system npm
-  patch -Np1 -i "${srcdir}"/use-system-npm.patch
-}
-
-build() {
-  cd apm-${pkgver}
-
-  coffee -c --no-header -o lib src/*.coffee
-  npm install --user root -g --prefix="${srcdir}"/apm-build/usr
-}
-
-package() {
-  cp -r "${srcdir}"/apm-build/usr "${pkgdir}"
-
-  cd "${pkgdir}"${_apmdir}
-  install -m644 "${srcdir}"/apm-${pkgver}/README.md ./
-
-  # Install license file
-  install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
-  ln -s ../../../lib/node_modules/atom-package-manager/LICENSE.md \
-     "${pkgdir}/usr/share/licenses/${pkgname}"
-
-  # Remove occurrences of ${srcdir}
-  find "${pkgdir}" -name "package.json" \
-       -exec sed -e "s|${srcdir}/apm-build||" \
-                 -e "s|${srcdir}/apm-${pkgver}|${_apmdir}|" \
-                 -i '{}' \;
-
-  # Remove useless stuff
-  find "${pkgdir}"/usr/lib \
-      -name ".*" -prune -exec rm -r '{}' \; \
-      -or -name "*.a" -exec rm '{}' \; \
-      -or -name "*.bat" -exec rm '{}' \; \
-      -or -name "*.mk" -exec rm '{}' \; \
-      -or -path "*/git-utils/binding.gyp" -exec rm '{}' \; \
-      -or -path "*/git-utils/src" -prune -exec rm -r '{}' \; \
-      -or -path "*/keytar/binding.gyp" -exec rm '{}' \; \
-      -or -path "*/keytar/src" -prune -exec rm -r '{}' \; \
-      -or -path "*/oniguruma/binding.gyp" -exec rm '{}' \; \
-      -or -path "*/oniguruma/src" -prune -exec rm -r '{}' \; \
-      -or -name "appveyor.yml" -exec rm '{}' \; \
-      -or -name "benchmark" -prune -exec rm -r '{}' \; \
-      -or -name "binding.Makefile" -exec rm '{}' \; \
-      -or -name "config.gypi" -exec rm '{}' \; \
-      -or -name "deps" -prune -exec rm -r '{}' \; \
-      -or -name "doc" -prune -exec rm -r '{}' \; \
-      -or -name "html" -prune -exec rm -r '{}' \; \
-      -or -name "Makefile" -exec rm '{}' \; \
-      -or -name "man" -prune -exec rm -r '{}' \; \
-      -or -name "obj.target" -prune -exec rm -r '{}' \; \
-      -or -name "samples" -prune -exec rm -r '{}' \; \
-      -or -name "test" -prune -exec rm -r '{}' \; \
-      -or -name "tests" -prune -exec rm -r '{}' \;
-}

Copied: apm/repos/community-i686/PKGBUILD (from rev 193882, apm/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2016-10-28 10:27:38 UTC (rev 193883)
@@ -0,0 +1,95 @@
+# $Id$
+# Maintainer: Nicola Squartini <tensor5 at gmail.com>
+
+pkgname=apm
+pkgver=1.14.0
+pkgrel=1
+pkgdesc='Atom package manager'
+arch=('i686' 'x86_64')
+url='https://github.com/atom/apm'
+license=('MIT')
+depends=('libgnome-keyring' 'npm' 'python2')
+makedepends=('coffee-script' 'git')
+provides=('nodejs-atom-package-manager')
+conflicts=('nodejs-atom-package-manager')
+replaces=('nodejs-atom-package-manager')
+options=(!emptydirs)
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/atom/apm/archive/v${pkgver}.tar.gz"
+        'apm.js'
+        'no-scripts.patch'
+        'use-system-npm.patch')
+sha256sums=('bb916a3bda31563a568c7fa7292e0a88e0eb1b72ae67ee70a7e9f38ab4d141ae'
+            '0eb50358109c7acb4f750ce278323c1d5b86baea5841d5166cf4342a3edf2898'
+            '0f61369526d013b001f116b0fbbfd8564377c56962057135d2633e84d31a1562'
+            'c6bf548e5850d9699b4bf662eee33aca628c62ab9c92f9216e8fe33b0012990c')
+
+_apmdir='/usr/lib/node_modules/atom-package-manager'
+
+prepare() {
+  rm -rf "${srcdir}"/apm-build
+
+  cd apm-${pkgver}
+
+  # Use custom launcher
+  rm bin/apm{,.cmd} bin/npm{,.cmd}
+  rm src/cli.coffee
+  install -m755 "${srcdir}"/apm.js bin/apm
+
+  # Don't download binary Node
+  patch -Np1 -i "${srcdir}"/no-scripts.patch
+  rm BUNDLED_NODE_VERSION script/*
+
+  # Use system npm
+  patch -Np1 -i "${srcdir}"/use-system-npm.patch
+}
+
+build() {
+  cd apm-${pkgver}
+
+  coffee -c --no-header -o lib src/*.coffee
+  npm install --user root -g --prefix="${srcdir}"/apm-build/usr
+}
+
+package() {
+  cp -r "${srcdir}"/apm-build/usr "${pkgdir}"
+
+  cd "${pkgdir}"${_apmdir}
+  install -m644 "${srcdir}"/apm-${pkgver}/README.md ./
+
+  # Install license file
+  install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
+  ln -s ../../../lib/node_modules/atom-package-manager/LICENSE.md \
+     "${pkgdir}/usr/share/licenses/${pkgname}"
+
+  # Remove occurrences of ${srcdir}
+  find "${pkgdir}" -name "package.json" \
+       -exec sed -e "s|${srcdir}/apm-build||" \
+                 -e "s|${srcdir}/apm-${pkgver}|${_apmdir}|" \
+                 -i '{}' \;
+
+  # Remove useless stuff
+  find "${pkgdir}"/usr/lib \
+      -name ".*" -prune -exec rm -r '{}' \; \
+      -or -name "*.a" -exec rm '{}' \; \
+      -or -name "*.bat" -exec rm '{}' \; \
+      -or -name "*.mk" -exec rm '{}' \; \
+      -or -path "*/git-utils/binding.gyp" -exec rm '{}' \; \
+      -or -path "*/git-utils/src" -prune -exec rm -r '{}' \; \
+      -or -path "*/keytar/binding.gyp" -exec rm '{}' \; \
+      -or -path "*/keytar/src" -prune -exec rm -r '{}' \; \
+      -or -path "*/oniguruma/binding.gyp" -exec rm '{}' \; \
+      -or -path "*/oniguruma/src" -prune -exec rm -r '{}' \; \
+      -or -name "appveyor.yml" -exec rm '{}' \; \
+      -or -name "benchmark" -prune -exec rm -r '{}' \; \
+      -or -name "binding.Makefile" -exec rm '{}' \; \
+      -or -name "config.gypi" -exec rm '{}' \; \
+      -or -name "deps" -prune -exec rm -r '{}' \; \
+      -or -name "doc" -prune -exec rm -r '{}' \; \
+      -or -name "html" -prune -exec rm -r '{}' \; \
+      -or -name "Makefile" -exec rm '{}' \; \
+      -or -name "man" -prune -exec rm -r '{}' \; \
+      -or -name "obj.target" -prune -exec rm -r '{}' \; \
+      -or -name "samples" -prune -exec rm -r '{}' \; \
+      -or -name "test" -prune -exec rm -r '{}' \; \
+      -or -name "tests" -prune -exec rm -r '{}' \;
+}

Deleted: community-i686/apm.js
===================================================================
--- community-i686/apm.js	2016-10-28 10:27:06 UTC (rev 193882)
+++ community-i686/apm.js	2016-10-28 10:27:38 UTC (rev 193883)
@@ -1,14 +0,0 @@
-#!/usr/bin/node
-
-'use strict';
-
-process.env.ATOM_RESOURCE_PATH = process.env.ATOM_RESOURCE_PATH ||
-        '/usr/lib/atom';
-
-process.env.ATOM_ELECTRON_VERSION = process.env.ATOM_ELECTRON_VERSION ||
-        require('fs')
-    .readFileSync('/usr/lib/electron/version', 'utf8').trim().slice(1);
-
-require('../lib/apm-cli.js').run(process.argv.slice(2), function (error) {
-    process.exitCode = +!!error;
-});

Copied: apm/repos/community-i686/apm.js (from rev 193882, apm/trunk/apm.js)
===================================================================
--- community-i686/apm.js	                        (rev 0)
+++ community-i686/apm.js	2016-10-28 10:27:38 UTC (rev 193883)
@@ -0,0 +1,14 @@
+#!/usr/bin/node
+
+'use strict';
+
+process.env.ATOM_RESOURCE_PATH = process.env.ATOM_RESOURCE_PATH ||
+        '/usr/lib/atom';
+
+process.env.ATOM_ELECTRON_VERSION = process.env.ATOM_ELECTRON_VERSION ||
+        require('fs')
+    .readFileSync('/usr/lib/electron/version', 'utf8').trim().slice(1);
+
+require('../lib/apm-cli.js').run(process.argv.slice(2), function (error) {
+    process.exitCode = +!!error;
+});

Deleted: community-i686/no-scripts.patch
===================================================================
--- community-i686/no-scripts.patch	2016-10-28 10:27:06 UTC (rev 193882)
+++ community-i686/no-scripts.patch	2016-10-28 10:27:38 UTC (rev 193883)
@@ -1,16 +0,0 @@
---- a/package.json
-+++ b/package.json
-@@ -14,13 +14,6 @@
-   "bin": {
-     "apm": "./bin/apm"
-   },
--  "scripts": {
--    "build": "node script/check-version.js && grunt",
--    "prepublish": "grunt prepublish",
--    "install": "node script/postinstall.js",
--    "test": "node script/check-version.js && grunt test",
--    "check-version": "node version.js"
--  },
-   "dependencies": {
-     "asar-require": "0.3.0",
-     "async": "~0.2.8",

Copied: apm/repos/community-i686/no-scripts.patch (from rev 193882, apm/trunk/no-scripts.patch)
===================================================================
--- community-i686/no-scripts.patch	                        (rev 0)
+++ community-i686/no-scripts.patch	2016-10-28 10:27:38 UTC (rev 193883)
@@ -0,0 +1,16 @@
+--- a/package.json
++++ b/package.json
+@@ -14,13 +14,6 @@
+   "bin": {
+     "apm": "./bin/apm"
+   },
+-  "scripts": {
+-    "build": "node script/check-version.js && grunt",
+-    "prepublish": "grunt prepublish",
+-    "install": "node script/postinstall.js",
+-    "test": "node script/check-version.js && grunt test",
+-    "check-version": "node version.js"
+-  },
+   "dependencies": {
+     "asar-require": "0.3.0",
+     "async": "~0.2.8",

Deleted: community-i686/use-system-npm.patch
===================================================================
--- community-i686/use-system-npm.patch	2016-10-28 10:27:06 UTC (rev 193882)
+++ community-i686/use-system-npm.patch	2016-10-28 10:27:38 UTC (rev 193883)
@@ -1,32 +0,0 @@
---- a/package.json
-+++ b/package.json
-@@ -25,7 +25,6 @@
-     "keytar": "^3.0",
-     "mv": "2.0.0",
-     "ncp": "~0.5.1",
--    "npm": "3.10.5",
-     "open": "0.0.4",
-     "plist": "git+https://github.com/nathansobo/node-plist.git",
-     "q": "~0.9.7",
---- a/src/dedupe.coffee
-+++ b/src/dedupe.coffee
-@@ -17,7 +17,7 @@
-     @atomPackagesDirectory = path.join(@atomDirectory, 'packages')
-     @atomNodeDirectory = path.join(@atomDirectory, '.node-gyp')
-     @atomNpmPath = require.resolve('npm/bin/npm-cli')
--    @atomNodeGypPath = require.resolve('node-gyp/bin/node-gyp')
-+    @atomNodeGypPath = require.resolve('npm/node_modules/node-gyp/bin/node-gyp')
- 
-   parseOptions: (argv) ->
-     options = yargs(argv).wrap(100)
---- a/src/install.coffee
-+++ b/src/install.coffee
-@@ -26,7 +26,7 @@
-     @atomPackagesDirectory = path.join(@atomDirectory, 'packages')
-     @atomNodeDirectory = path.join(@atomDirectory, '.node-gyp')
-     @atomNpmPath = require.resolve('npm/bin/npm-cli')
--    @atomNodeGypPath = require.resolve('node-gyp/bin/node-gyp')
-+    @atomNodeGypPath = require.resolve('npm/node_modules/node-gyp/bin/node-gyp')
- 
-   parseOptions: (argv) ->
-     options = yargs(argv).wrap(100)

Copied: apm/repos/community-i686/use-system-npm.patch (from rev 193882, apm/trunk/use-system-npm.patch)
===================================================================
--- community-i686/use-system-npm.patch	                        (rev 0)
+++ community-i686/use-system-npm.patch	2016-10-28 10:27:38 UTC (rev 193883)
@@ -0,0 +1,32 @@
+--- a/package.json
++++ b/package.json
+@@ -25,7 +25,6 @@
+     "keytar": "^3.0",
+     "mv": "2.0.0",
+     "ncp": "~0.5.1",
+-    "npm": "3.10.5",
+     "open": "0.0.4",
+     "plist": "git+https://github.com/nathansobo/node-plist.git",
+     "q": "~0.9.7",
+--- a/src/dedupe.coffee
++++ b/src/dedupe.coffee
+@@ -17,7 +17,7 @@
+     @atomPackagesDirectory = path.join(@atomDirectory, 'packages')
+     @atomNodeDirectory = path.join(@atomDirectory, '.node-gyp')
+     @atomNpmPath = require.resolve('npm/bin/npm-cli')
+-    @atomNodeGypPath = require.resolve('node-gyp/bin/node-gyp')
++    @atomNodeGypPath = require.resolve('npm/node_modules/node-gyp/bin/node-gyp')
+ 
+   parseOptions: (argv) ->
+     options = yargs(argv).wrap(100)
+--- a/src/install.coffee
++++ b/src/install.coffee
+@@ -26,7 +26,7 @@
+     @atomPackagesDirectory = path.join(@atomDirectory, 'packages')
+     @atomNodeDirectory = path.join(@atomDirectory, '.node-gyp')
+     @atomNpmPath = require.resolve('npm/bin/npm-cli')
+-    @atomNodeGypPath = require.resolve('node-gyp/bin/node-gyp')
++    @atomNodeGypPath = require.resolve('npm/node_modules/node-gyp/bin/node-gyp')
+ 
+   parseOptions: (argv) ->
+     options = yargs(argv).wrap(100)

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2016-10-28 10:27:06 UTC (rev 193882)
+++ community-x86_64/PKGBUILD	2016-10-28 10:27:38 UTC (rev 193883)
@@ -1,95 +0,0 @@
-# $Id$
-# Maintainer: Nicola Squartini <tensor5 at gmail.com>
-
-pkgname=apm
-pkgver=1.13.0
-pkgrel=1
-pkgdesc='Atom package manager'
-arch=('i686' 'x86_64')
-url='https://github.com/atom/apm'
-license=('MIT')
-depends=('libgnome-keyring' 'npm' 'python2')
-makedepends=('coffee-script' 'git')
-provides=('nodejs-atom-package-manager')
-conflicts=('nodejs-atom-package-manager')
-replaces=('nodejs-atom-package-manager')
-options=(!emptydirs)
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/atom/apm/archive/v${pkgver}.tar.gz"
-        'apm.js'
-        'no-scripts.patch'
-        'use-system-npm.patch')
-sha256sums=('856b08b734a74a43da369037983c29e05d83d2e7bcf8c938bf4f3f95d7c72da4'
-            '0eb50358109c7acb4f750ce278323c1d5b86baea5841d5166cf4342a3edf2898'
-            '0f61369526d013b001f116b0fbbfd8564377c56962057135d2633e84d31a1562'
-            'c6bf548e5850d9699b4bf662eee33aca628c62ab9c92f9216e8fe33b0012990c')
-
-_apmdir='/usr/lib/node_modules/atom-package-manager'
-
-prepare() {
-  rm -rf "${srcdir}"/apm-build
-
-  cd apm-${pkgver}
-
-  # Use custom launcher
-  rm bin/apm{,.cmd} bin/npm{,.cmd}
-  rm src/cli.coffee
-  install -m755 "${srcdir}"/apm.js bin/apm
-
-  # Don't download binary Node
-  patch -Np1 -i "${srcdir}"/no-scripts.patch
-  rm BUNDLED_NODE_VERSION script/*
-
-  # Use system npm
-  patch -Np1 -i "${srcdir}"/use-system-npm.patch
-}
-
-build() {
-  cd apm-${pkgver}
-
-  coffee -c --no-header -o lib src/*.coffee
-  npm install --user root -g --prefix="${srcdir}"/apm-build/usr
-}
-
-package() {
-  cp -r "${srcdir}"/apm-build/usr "${pkgdir}"
-
-  cd "${pkgdir}"${_apmdir}
-  install -m644 "${srcdir}"/apm-${pkgver}/README.md ./
-
-  # Install license file
-  install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
-  ln -s ../../../lib/node_modules/atom-package-manager/LICENSE.md \
-     "${pkgdir}/usr/share/licenses/${pkgname}"
-
-  # Remove occurrences of ${srcdir}
-  find "${pkgdir}" -name "package.json" \
-       -exec sed -e "s|${srcdir}/apm-build||" \
-                 -e "s|${srcdir}/apm-${pkgver}|${_apmdir}|" \
-                 -i '{}' \;
-
-  # Remove useless stuff
-  find "${pkgdir}"/usr/lib \
-      -name ".*" -prune -exec rm -r '{}' \; \
-      -or -name "*.a" -exec rm '{}' \; \
-      -or -name "*.bat" -exec rm '{}' \; \
-      -or -name "*.mk" -exec rm '{}' \; \
-      -or -path "*/git-utils/binding.gyp" -exec rm '{}' \; \
-      -or -path "*/git-utils/src" -prune -exec rm -r '{}' \; \
-      -or -path "*/keytar/binding.gyp" -exec rm '{}' \; \
-      -or -path "*/keytar/src" -prune -exec rm -r '{}' \; \
-      -or -path "*/oniguruma/binding.gyp" -exec rm '{}' \; \
-      -or -path "*/oniguruma/src" -prune -exec rm -r '{}' \; \
-      -or -name "appveyor.yml" -exec rm '{}' \; \
-      -or -name "benchmark" -prune -exec rm -r '{}' \; \
-      -or -name "binding.Makefile" -exec rm '{}' \; \
-      -or -name "config.gypi" -exec rm '{}' \; \
-      -or -name "deps" -prune -exec rm -r '{}' \; \
-      -or -name "doc" -prune -exec rm -r '{}' \; \
-      -or -name "html" -prune -exec rm -r '{}' \; \
-      -or -name "Makefile" -exec rm '{}' \; \
-      -or -name "man" -prune -exec rm -r '{}' \; \
-      -or -name "obj.target" -prune -exec rm -r '{}' \; \
-      -or -name "samples" -prune -exec rm -r '{}' \; \
-      -or -name "test" -prune -exec rm -r '{}' \; \
-      -or -name "tests" -prune -exec rm -r '{}' \;
-}

Copied: apm/repos/community-x86_64/PKGBUILD (from rev 193882, apm/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2016-10-28 10:27:38 UTC (rev 193883)
@@ -0,0 +1,95 @@
+# $Id$
+# Maintainer: Nicola Squartini <tensor5 at gmail.com>
+
+pkgname=apm
+pkgver=1.14.0
+pkgrel=1
+pkgdesc='Atom package manager'
+arch=('i686' 'x86_64')
+url='https://github.com/atom/apm'
+license=('MIT')
+depends=('libgnome-keyring' 'npm' 'python2')
+makedepends=('coffee-script' 'git')
+provides=('nodejs-atom-package-manager')
+conflicts=('nodejs-atom-package-manager')
+replaces=('nodejs-atom-package-manager')
+options=(!emptydirs)
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/atom/apm/archive/v${pkgver}.tar.gz"
+        'apm.js'
+        'no-scripts.patch'
+        'use-system-npm.patch')
+sha256sums=('bb916a3bda31563a568c7fa7292e0a88e0eb1b72ae67ee70a7e9f38ab4d141ae'
+            '0eb50358109c7acb4f750ce278323c1d5b86baea5841d5166cf4342a3edf2898'
+            '0f61369526d013b001f116b0fbbfd8564377c56962057135d2633e84d31a1562'
+            'c6bf548e5850d9699b4bf662eee33aca628c62ab9c92f9216e8fe33b0012990c')
+
+_apmdir='/usr/lib/node_modules/atom-package-manager'
+
+prepare() {
+  rm -rf "${srcdir}"/apm-build
+
+  cd apm-${pkgver}
+
+  # Use custom launcher
+  rm bin/apm{,.cmd} bin/npm{,.cmd}
+  rm src/cli.coffee
+  install -m755 "${srcdir}"/apm.js bin/apm
+
+  # Don't download binary Node
+  patch -Np1 -i "${srcdir}"/no-scripts.patch
+  rm BUNDLED_NODE_VERSION script/*
+
+  # Use system npm
+  patch -Np1 -i "${srcdir}"/use-system-npm.patch
+}
+
+build() {
+  cd apm-${pkgver}
+
+  coffee -c --no-header -o lib src/*.coffee
+  npm install --user root -g --prefix="${srcdir}"/apm-build/usr
+}
+
+package() {
+  cp -r "${srcdir}"/apm-build/usr "${pkgdir}"
+
+  cd "${pkgdir}"${_apmdir}
+  install -m644 "${srcdir}"/apm-${pkgver}/README.md ./
+
+  # Install license file
+  install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
+  ln -s ../../../lib/node_modules/atom-package-manager/LICENSE.md \
+     "${pkgdir}/usr/share/licenses/${pkgname}"
+
+  # Remove occurrences of ${srcdir}
+  find "${pkgdir}" -name "package.json" \
+       -exec sed -e "s|${srcdir}/apm-build||" \
+                 -e "s|${srcdir}/apm-${pkgver}|${_apmdir}|" \
+                 -i '{}' \;
+
+  # Remove useless stuff
+  find "${pkgdir}"/usr/lib \
+      -name ".*" -prune -exec rm -r '{}' \; \
+      -or -name "*.a" -exec rm '{}' \; \
+      -or -name "*.bat" -exec rm '{}' \; \
+      -or -name "*.mk" -exec rm '{}' \; \
+      -or -path "*/git-utils/binding.gyp" -exec rm '{}' \; \
+      -or -path "*/git-utils/src" -prune -exec rm -r '{}' \; \
+      -or -path "*/keytar/binding.gyp" -exec rm '{}' \; \
+      -or -path "*/keytar/src" -prune -exec rm -r '{}' \; \
+      -or -path "*/oniguruma/binding.gyp" -exec rm '{}' \; \
+      -or -path "*/oniguruma/src" -prune -exec rm -r '{}' \; \
+      -or -name "appveyor.yml" -exec rm '{}' \; \
+      -or -name "benchmark" -prune -exec rm -r '{}' \; \
+      -or -name "binding.Makefile" -exec rm '{}' \; \
+      -or -name "config.gypi" -exec rm '{}' \; \
+      -or -name "deps" -prune -exec rm -r '{}' \; \
+      -or -name "doc" -prune -exec rm -r '{}' \; \
+      -or -name "html" -prune -exec rm -r '{}' \; \
+      -or -name "Makefile" -exec rm '{}' \; \
+      -or -name "man" -prune -exec rm -r '{}' \; \
+      -or -name "obj.target" -prune -exec rm -r '{}' \; \
+      -or -name "samples" -prune -exec rm -r '{}' \; \
+      -or -name "test" -prune -exec rm -r '{}' \; \
+      -or -name "tests" -prune -exec rm -r '{}' \;
+}

Deleted: community-x86_64/apm.js
===================================================================
--- community-x86_64/apm.js	2016-10-28 10:27:06 UTC (rev 193882)
+++ community-x86_64/apm.js	2016-10-28 10:27:38 UTC (rev 193883)
@@ -1,14 +0,0 @@
-#!/usr/bin/node
-
-'use strict';
-
-process.env.ATOM_RESOURCE_PATH = process.env.ATOM_RESOURCE_PATH ||
-        '/usr/lib/atom';
-
-process.env.ATOM_ELECTRON_VERSION = process.env.ATOM_ELECTRON_VERSION ||
-        require('fs')
-    .readFileSync('/usr/lib/electron/version', 'utf8').trim().slice(1);
-
-require('../lib/apm-cli.js').run(process.argv.slice(2), function (error) {
-    process.exitCode = +!!error;
-});

Copied: apm/repos/community-x86_64/apm.js (from rev 193882, apm/trunk/apm.js)
===================================================================
--- community-x86_64/apm.js	                        (rev 0)
+++ community-x86_64/apm.js	2016-10-28 10:27:38 UTC (rev 193883)
@@ -0,0 +1,14 @@
+#!/usr/bin/node
+
+'use strict';
+
+process.env.ATOM_RESOURCE_PATH = process.env.ATOM_RESOURCE_PATH ||
+        '/usr/lib/atom';
+
+process.env.ATOM_ELECTRON_VERSION = process.env.ATOM_ELECTRON_VERSION ||
+        require('fs')
+    .readFileSync('/usr/lib/electron/version', 'utf8').trim().slice(1);
+
+require('../lib/apm-cli.js').run(process.argv.slice(2), function (error) {
+    process.exitCode = +!!error;
+});

Deleted: community-x86_64/no-scripts.patch
===================================================================
--- community-x86_64/no-scripts.patch	2016-10-28 10:27:06 UTC (rev 193882)
+++ community-x86_64/no-scripts.patch	2016-10-28 10:27:38 UTC (rev 193883)
@@ -1,16 +0,0 @@
---- a/package.json
-+++ b/package.json
-@@ -14,13 +14,6 @@
-   "bin": {
-     "apm": "./bin/apm"
-   },
--  "scripts": {
--    "build": "node script/check-version.js && grunt",
--    "prepublish": "grunt prepublish",
--    "install": "node script/postinstall.js",
--    "test": "node script/check-version.js && grunt test",
--    "check-version": "node version.js"
--  },
-   "dependencies": {
-     "asar-require": "0.3.0",
-     "async": "~0.2.8",

Copied: apm/repos/community-x86_64/no-scripts.patch (from rev 193882, apm/trunk/no-scripts.patch)
===================================================================
--- community-x86_64/no-scripts.patch	                        (rev 0)
+++ community-x86_64/no-scripts.patch	2016-10-28 10:27:38 UTC (rev 193883)
@@ -0,0 +1,16 @@
+--- a/package.json
++++ b/package.json
+@@ -14,13 +14,6 @@
+   "bin": {
+     "apm": "./bin/apm"
+   },
+-  "scripts": {
+-    "build": "node script/check-version.js && grunt",
+-    "prepublish": "grunt prepublish",
+-    "install": "node script/postinstall.js",
+-    "test": "node script/check-version.js && grunt test",
+-    "check-version": "node version.js"
+-  },
+   "dependencies": {
+     "asar-require": "0.3.0",
+     "async": "~0.2.8",

Deleted: community-x86_64/use-system-npm.patch
===================================================================
--- community-x86_64/use-system-npm.patch	2016-10-28 10:27:06 UTC (rev 193882)
+++ community-x86_64/use-system-npm.patch	2016-10-28 10:27:38 UTC (rev 193883)
@@ -1,32 +0,0 @@
---- a/package.json
-+++ b/package.json
-@@ -25,7 +25,6 @@
-     "keytar": "^3.0",
-     "mv": "2.0.0",
-     "ncp": "~0.5.1",
--    "npm": "3.10.5",
-     "open": "0.0.4",
-     "plist": "git+https://github.com/nathansobo/node-plist.git",
-     "q": "~0.9.7",
---- a/src/dedupe.coffee
-+++ b/src/dedupe.coffee
-@@ -17,7 +17,7 @@
-     @atomPackagesDirectory = path.join(@atomDirectory, 'packages')
-     @atomNodeDirectory = path.join(@atomDirectory, '.node-gyp')
-     @atomNpmPath = require.resolve('npm/bin/npm-cli')
--    @atomNodeGypPath = require.resolve('node-gyp/bin/node-gyp')
-+    @atomNodeGypPath = require.resolve('npm/node_modules/node-gyp/bin/node-gyp')
- 
-   parseOptions: (argv) ->
-     options = yargs(argv).wrap(100)
---- a/src/install.coffee
-+++ b/src/install.coffee
-@@ -26,7 +26,7 @@
-     @atomPackagesDirectory = path.join(@atomDirectory, 'packages')
-     @atomNodeDirectory = path.join(@atomDirectory, '.node-gyp')
-     @atomNpmPath = require.resolve('npm/bin/npm-cli')
--    @atomNodeGypPath = require.resolve('node-gyp/bin/node-gyp')
-+    @atomNodeGypPath = require.resolve('npm/node_modules/node-gyp/bin/node-gyp')
- 
-   parseOptions: (argv) ->
-     options = yargs(argv).wrap(100)

Copied: apm/repos/community-x86_64/use-system-npm.patch (from rev 193882, apm/trunk/use-system-npm.patch)
===================================================================
--- community-x86_64/use-system-npm.patch	                        (rev 0)
+++ community-x86_64/use-system-npm.patch	2016-10-28 10:27:38 UTC (rev 193883)
@@ -0,0 +1,32 @@
+--- a/package.json
++++ b/package.json
+@@ -25,7 +25,6 @@
+     "keytar": "^3.0",
+     "mv": "2.0.0",
+     "ncp": "~0.5.1",
+-    "npm": "3.10.5",
+     "open": "0.0.4",
+     "plist": "git+https://github.com/nathansobo/node-plist.git",
+     "q": "~0.9.7",
+--- a/src/dedupe.coffee
++++ b/src/dedupe.coffee
+@@ -17,7 +17,7 @@
+     @atomPackagesDirectory = path.join(@atomDirectory, 'packages')
+     @atomNodeDirectory = path.join(@atomDirectory, '.node-gyp')
+     @atomNpmPath = require.resolve('npm/bin/npm-cli')
+-    @atomNodeGypPath = require.resolve('node-gyp/bin/node-gyp')
++    @atomNodeGypPath = require.resolve('npm/node_modules/node-gyp/bin/node-gyp')
+ 
+   parseOptions: (argv) ->
+     options = yargs(argv).wrap(100)
+--- a/src/install.coffee
++++ b/src/install.coffee
+@@ -26,7 +26,7 @@
+     @atomPackagesDirectory = path.join(@atomDirectory, 'packages')
+     @atomNodeDirectory = path.join(@atomDirectory, '.node-gyp')
+     @atomNpmPath = require.resolve('npm/bin/npm-cli')
+-    @atomNodeGypPath = require.resolve('node-gyp/bin/node-gyp')
++    @atomNodeGypPath = require.resolve('npm/node_modules/node-gyp/bin/node-gyp')
+ 
+   parseOptions: (argv) ->
+     options = yargs(argv).wrap(100)



More information about the arch-commits mailing list