[arch-commits] Commit in messengerfordesktop/repos/community-x86_64 (6 files)

Nicola Squartini tensor5 at archlinux.org
Thu Aug 31 10:05:47 UTC 2017


    Date: Thursday, August 31, 2017 @ 10:05:46
  Author: tensor5
Revision: 255169

archrelease: copy trunk to community-x86_64

Added:
  messengerfordesktop/repos/community-x86_64/PKGBUILD
    (from rev 255168, messengerfordesktop/trunk/PKGBUILD)
  messengerfordesktop/repos/community-x86_64/messengerfordesktop.js
    (from rev 255168, messengerfordesktop/trunk/messengerfordesktop.js)
  messengerfordesktop/repos/community-x86_64/use-system-electron.patch
    (from rev 255168, messengerfordesktop/trunk/use-system-electron.patch)
Deleted:
  messengerfordesktop/repos/community-x86_64/PKGBUILD
  messengerfordesktop/repos/community-x86_64/messengerfordesktop.js
  messengerfordesktop/repos/community-x86_64/use-system-electron.patch

---------------------------+
 PKGBUILD                  |  194 +++++++++++++++++++++++---------------------
 messengerfordesktop.js    |   58 ++++++-------
 use-system-electron.patch |   56 ++++++------
 3 files changed, 159 insertions(+), 149 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2017-08-31 10:05:29 UTC (rev 255168)
+++ PKGBUILD	2017-08-31 10:05:46 UTC (rev 255169)
@@ -1,92 +0,0 @@
-# $Id$
-# Maintainer: Nicola Squartini <tensor5 at gmail.com>
-
-pkgname=messengerfordesktop
-pkgver=2.0.9
-pkgrel=1
-pkgdesc='A simple & beautiful desktop client for Facebook Messenger'
-arch=('i686' 'x86_64')
-url='https://messengerfordesktop.com/'
-license=('MIT')
-depends=('electron')
-makedepends=('apm' 'npm')
-options=(!emptydirs)
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Aluxian/Messenger-for-Desktop/archive/v${pkgver}.tar.gz"
-        "${pkgname}.js"
-        'use-system-electron.patch')
-sha256sums=('f0b68a2dd6bdfd5d7effa21747abb222b5716c2284ae62b9a5e8ae410f00ef9d'
-            '55e6da47ddbf383fc8a6ef6e0aae5621b7800c8efe46422c1c352d6c029c1f45'
-            '014ef8a03e38d4e5c5cab49cb6a2e9fbf81de9aecbfc66aeadf124844a541a66')
-
-if [ "${CARCH}" == 'i686' ]; then
-    _target=linux32
-else
-    _target=linux64
-fi
-
-prepare() {
-    cd Messenger-for-Desktop-${pkgver}
-    
-    patch -Np1 -i "${srcdir}"/use-system-electron.patch
-    sed -e 's|/opt/{{ name }}/||' \
-        -i resources/linux/app.desktop \
-        -i resources/linux/startup.desktop
-}
-
-build() {
-    cd Messenger-for-Desktop-${pkgver}
-    
-    npm install
-    cd src
-    ATOM_HOME="${PWD}" apm install --production
-    cd ..
-
-    ./node_modules/.bin/gulp build:${_target}
-}
-
-package() {
-    cd Messenger-for-Desktop-${pkgver}
-
-    appdir=/usr/lib/${pkgname}
-
-    install -dm755 "${pkgdir}"${appdir}
-    cp -r build/${_target}/opt/${pkgname}/resources/app/* "${pkgdir}"${appdir}
-
-    cp -r build/${_target}/usr/share "${pkgdir}"/usr
-
-    install -Dm755 "${srcdir}"/${pkgname}.js "${pkgdir}"/usr/bin/${pkgname}
-
-    install -Dm644 -t "${pkgdir}"/usr/share/licenses/${pkgname} LICENSE.md
-
-    # Clean up
-    find "${pkgdir}"${appdir}/node_modules \
-        -name 'package.json' \
-            -exec sed -e "s|${srcdir}/Messenger-for-Desktop-${pkgver}/src|${appdir}|" \
-                -i {} \; \
-        -or -name '.*' -prune -exec rm -r '{}' \; \
-        -or -name '*.a' -exec rm '{}' \; \
-        -or -name '*.cc' -exec rm '{}' \; \
-        -or -name '*.h' -exec rm '{}' \; \
-        -or -name '*.gyp' -exec rm '{}' \; \
-        -or -name '*.gypi' -exec rm '{}' \; \
-        -or -name '*.Makefile' -exec rm '{}' \; \
-        -or -name '*.mk' -exec rm '{}' \; \
-        -or -name '*.mm' -exec rm '{}' \; \
-        -or -name 'appveyor.yml' -exec rm '{}' \; \
-        -or -name 'benchmark' -prune -exec rm -r '{}' \; \
-        -or -name 'bin' -prune -exec rm -r '{}' \; \
-        -or -name 'bin.js' -exec rm '{}' \; \
-        -or -name 'build.js' -exec rm '{}' \; \
-        -or -name 'cli.js' -exec rm '{}' \; \
-        -or -name 'deps' -prune -exec rm -r '{}' \; \
-        -or -name 'doc' -prune -exec rm -r '{}' \; \
-        -or -name 'docs' -prune -exec rm -r '{}' \; \
-        -or -name 'example' -prune -exec rm -r '{}' \; \
-        -or -name 'examples' -prune -exec rm -r '{}' \; \
-        -or -name 'hunspell' -prune -exec rm -r '{}' \; \
-        -or -name 'Makefile' -exec rm '{}' \; \
-        -or -name 'obj.target' -prune -exec rm -r '{}' \; \
-        -or -name 'test' -prune -exec rm -r '{}' \; \
-        -or -name 'tests' -prune -exec rm -r '{}' \; \
-        -or -name 'tools' -prune -exec rm -r '{}' \;
-}

Copied: messengerfordesktop/repos/community-x86_64/PKGBUILD (from rev 255168, messengerfordesktop/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-08-31 10:05:46 UTC (rev 255169)
@@ -0,0 +1,102 @@
+# $Id$
+# Maintainer: Nicola Squartini <tensor5 at gmail.com>
+
+pkgname=messengerfordesktop
+pkgver=2.0.9+42+g4e4d6f1
+pkgrel=1
+_commit=4e4d6f1fd4bf3b8c0fa48ed6459efda9c4064461
+pkgdesc='A simple & beautiful desktop client for Facebook Messenger'
+arch=('i686' 'x86_64')
+url='https://messengerfordesktop.com/'
+license=('MIT')
+depends=('electron')
+makedepends=('apm' 'git' 'npm')
+options=(!emptydirs)
+source=("git+https://github.com/Aluxian/Messenger-for-Desktop#commit=${_commit}"
+        "${pkgname}.js"
+        'use-system-electron.patch')
+sha256sums=('SKIP'
+            '55e6da47ddbf383fc8a6ef6e0aae5621b7800c8efe46422c1c352d6c029c1f45'
+            '014ef8a03e38d4e5c5cab49cb6a2e9fbf81de9aecbfc66aeadf124844a541a66')
+
+if [ "${CARCH}" == 'i686' ]; then
+    _target=linux32
+else
+    _target=linux64
+fi
+
+pkgver() {
+    cd Messenger-for-Desktop
+
+    git describe --tags | sed 's/-/+/g;s/v//'
+}
+
+prepare() {
+    cd Messenger-for-Desktop
+    
+    patch -Np1 -i "${srcdir}"/use-system-electron.patch
+    sed -e 's|/opt/{{ name }}/||' \
+        -i resources/linux/app.desktop \
+        -i resources/linux/startup.desktop
+    sed -e "s|'updates-auto-check': true|'updates-auto-check': false|" \
+        -i src/scripts/browser/utils/prefs-defaults.js
+}
+
+build() {
+    cd Messenger-for-Desktop
+    
+    npm install
+    cd src
+    ATOM_HOME="${PWD}" apm install --production
+    cd ..
+
+    ./node_modules/.bin/gulp build:${_target}
+}
+
+package() {
+    cd Messenger-for-Desktop
+
+    appdir=/usr/lib/${pkgname}
+
+    install -dm755 "${pkgdir}"${appdir}
+    cp -r build/${_target}/opt/${pkgname}/resources/app/* "${pkgdir}"${appdir}
+
+    cp -r build/${_target}/usr/share "${pkgdir}"/usr
+
+    install -Dm755 "${srcdir}"/${pkgname}.js "${pkgdir}"/usr/bin/${pkgname}
+
+    install -Dm644 -t "${pkgdir}"/usr/share/licenses/${pkgname} LICENSE.md
+
+    # Clean up
+    find "${pkgdir}"${appdir}/node_modules \
+        -name 'package.json' \
+            -exec sed -e "s|${srcdir}/Messenger-for-Desktop-${pkgver}/src|${appdir}|" \
+                -i {} \; \
+        -or -name '.*' -prune -exec rm -r '{}' \; \
+        -or -name '*.a' -exec rm '{}' \; \
+        -or -name '*.cc' -exec rm '{}' \; \
+        -or -name '*.h' -exec rm '{}' \; \
+        -or -name '*.gyp' -exec rm '{}' \; \
+        -or -name '*.gypi' -exec rm '{}' \; \
+        -or -name '*.Makefile' -exec rm '{}' \; \
+        -or -name '*.mk' -exec rm '{}' \; \
+        -or -name '*.mm' -exec rm '{}' \; \
+        -or -name 'appveyor.yml' -exec rm '{}' \; \
+        -or -name 'benchmark' -prune -exec rm -r '{}' \; \
+        -or -name 'bin' -prune -exec rm -r '{}' \; \
+        -or -name 'bin.js' -exec rm '{}' \; \
+        -or -name 'build.js' -exec rm '{}' \; \
+        -or -name 'cli.js' -exec rm '{}' \; \
+        -or -name 'deps' -prune -exec rm -r '{}' \; \
+        -or -name 'doc' -prune -exec rm -r '{}' \; \
+        -or -name 'docs' -prune -exec rm -r '{}' \; \
+        -or -name 'example' -prune -exec rm -r '{}' \; \
+        -or -name 'examples' -prune -exec rm -r '{}' \; \
+        -or -name 'hunspell' -prune -exec rm -r '{}' \; \
+        -or -name 'Makefile' -exec rm '{}' \; \
+        -or -name 'obj.target' -prune -exec rm -r '{}' \; \
+        -or -name 'scripts' -prune -exec rm -r '{}' \; \
+        -or -name 'test' -prune -exec rm -r '{}' \; \
+        -or -name 'tests' -prune -exec rm -r '{}' \; \
+        -or -name 'tools' -prune -exec rm -r '{}' \;
+}

Deleted: messengerfordesktop.js
===================================================================
--- messengerfordesktop.js	2017-08-31 10:05:29 UTC (rev 255168)
+++ messengerfordesktop.js	2017-08-31 10:05:46 UTC (rev 255169)
@@ -1,29 +0,0 @@
-#!/usr/bin/electron
-
-const name = 'messengerfordesktop';
-
-const {app} = require('electron');
-const fs = require('fs');
-const path = require('path');
-
-// Change command name.
-const fd = fs.openSync('/proc/self/comm', fs.constants.O_WRONLY);
-fs.writeSync(fd, name);
-fs.closeSync(fd);
-
-// Remove first command line argument (/usr/bin/electron).
-process.argv.splice(0, 1);
-
-// Set application paths.
-const appPath = path.join(path.dirname(__dirname), 'lib', name);
-const packageJson = require(path.join(appPath, 'package.json'));
-const productName = packageJson.productName;
-app.setAppPath(appPath);
-app.setDesktopName(name + '.desktop');
-app.setName(productName);
-app.setPath('userCache', path.join(app.getPath('cache'), productName));
-app.setPath('userData', path.join(app.getPath('appData'), productName));
-app.setVersion(packageJson.version);
-
-// Run the application.
-require('module')._load(appPath, module, true);

Copied: messengerfordesktop/repos/community-x86_64/messengerfordesktop.js (from rev 255168, messengerfordesktop/trunk/messengerfordesktop.js)
===================================================================
--- messengerfordesktop.js	                        (rev 0)
+++ messengerfordesktop.js	2017-08-31 10:05:46 UTC (rev 255169)
@@ -0,0 +1,29 @@
+#!/usr/bin/electron
+
+const name = 'messengerfordesktop';
+
+const {app} = require('electron');
+const fs = require('fs');
+const path = require('path');
+
+// Change command name.
+const fd = fs.openSync('/proc/self/comm', fs.constants.O_WRONLY);
+fs.writeSync(fd, name);
+fs.closeSync(fd);
+
+// Remove first command line argument (/usr/bin/electron).
+process.argv.splice(0, 1);
+
+// Set application paths.
+const appPath = path.join(path.dirname(__dirname), 'lib', name);
+const packageJson = require(path.join(appPath, 'package.json'));
+const productName = packageJson.productName;
+app.setAppPath(appPath);
+app.setDesktopName(name + '.desktop');
+app.setName(productName);
+app.setPath('userCache', path.join(app.getPath('cache'), productName));
+app.setPath('userData', path.join(app.getPath('appData'), productName));
+app.setVersion(packageJson.version);
+
+// Run the application.
+require('module')._load(appPath, module, true);

Deleted: use-system-electron.patch
===================================================================
--- use-system-electron.patch	2017-08-31 10:05:29 UTC (rev 255168)
+++ use-system-electron.patch	2017-08-31 10:05:46 UTC (rev 255169)
@@ -1,28 +0,0 @@
---- a/tasks/build.coffee
-+++ b/tasks/build.coffee
-@@ -74,14 +74,6 @@
- ['linux32', 'linux64'].forEach (dist) ->
-   gulp.task 'build:' + dist, ['resources:linux', 'compile:' + dist, 'clean:build:' + dist, 'changelog:linux'], (done) ->
-     async.series [
--      # Rename the executable
--      (callback) ->
--        exeDir = './build/' + dist + '/opt/' + manifest.name + '/'
--        fromPath = exeDir + 'electron'
--        toPath = exeDir + manifest.name
--
--        fs.rename fromPath, toPath, utils.log callback, fromPath, '=>', toPath
--
-       # Move the app's .desktop file
-       (callback) ->
-         fromPath = './build/resources/linux/app.desktop'
---- a/tasks/clean.coffee
-+++ b/tasks/clean.coffee
-@@ -15,7 +15,7 @@
- 
- # Remove the default_app folder inside the linux builds
- ['linux32', 'linux64'].forEach (dist) ->
--  gulp.task 'clean:build:' + dist, ['download:' + dist], ->
-+  gulp.task 'clean:build:' + dist, ->
-     del './build/' + dist + '/opt/' + manifest.name + '/resources/default_app.asar'
-       .then (result) -> console.log result
- 

Copied: messengerfordesktop/repos/community-x86_64/use-system-electron.patch (from rev 255168, messengerfordesktop/trunk/use-system-electron.patch)
===================================================================
--- use-system-electron.patch	                        (rev 0)
+++ use-system-electron.patch	2017-08-31 10:05:46 UTC (rev 255169)
@@ -0,0 +1,28 @@
+--- a/tasks/build.coffee
++++ b/tasks/build.coffee
+@@ -74,14 +74,6 @@
+ ['linux32', 'linux64'].forEach (dist) ->
+   gulp.task 'build:' + dist, ['resources:linux', 'compile:' + dist, 'clean:build:' + dist, 'changelog:linux'], (done) ->
+     async.series [
+-      # Rename the executable
+-      (callback) ->
+-        exeDir = './build/' + dist + '/opt/' + manifest.name + '/'
+-        fromPath = exeDir + 'electron'
+-        toPath = exeDir + manifest.name
+-
+-        fs.rename fromPath, toPath, utils.log callback, fromPath, '=>', toPath
+-
+       # Move the app's .desktop file
+       (callback) ->
+         fromPath = './build/resources/linux/app.desktop'
+--- a/tasks/clean.coffee
++++ b/tasks/clean.coffee
+@@ -15,7 +15,7 @@
+ 
+ # Remove the default_app folder inside the linux builds
+ ['linux32', 'linux64'].forEach (dist) ->
+-  gulp.task 'clean:build:' + dist, ['download:' + dist], ->
++  gulp.task 'clean:build:' + dist, ->
+     del './build/' + dist + '/opt/' + manifest.name + '/resources/default_app.asar'
+       .then (result) -> console.log result
+ 



More information about the arch-commits mailing list