[arch-commits] Commit in min/repos/community-any (8 files)

Nicola Squartini tensor5 at archlinux.org
Mon Dec 24 14:02:12 UTC 2018


    Date: Monday, December 24, 2018 @ 14:02:10
  Author: tensor5
Revision: 417826

archrelease: copy trunk to community-any

Added:
  min/repos/community-any/PKGBUILD
    (from rev 417825, min/trunk/PKGBUILD)
  min/repos/community-any/icon.patch
    (from rev 417825, min/trunk/icon.patch)
  min/repos/community-any/min.desktop
    (from rev 417825, min/trunk/min.desktop)
  min/repos/community-any/min.js
    (from rev 417825, min/trunk/min.js)
Deleted:
  min/repos/community-any/PKGBUILD
  min/repos/community-any/icon.patch
  min/repos/community-any/min.desktop
  min/repos/community-any/min.js

-------------+
 PKGBUILD    |  158 +++++++++++++++++++++++++++++-----------------------------
 icon.patch  |   20 +++----
 min.desktop |   18 +++---
 min.js      |   58 ++++++++++-----------
 4 files changed, 127 insertions(+), 127 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-12-24 14:01:49 UTC (rev 417825)
+++ PKGBUILD	2018-12-24 14:02:10 UTC (rev 417826)
@@ -1,79 +0,0 @@
-# Maintainer: Nicola Squartini <tensor5 at gmail.com>
-
-pkgname=min
-pkgver=1.8.0
-pkgrel=1
-pkgdesc='A smarter, faster web browser'
-arch=('any')
-url='https://minbrowser.github.io/min'
-license=('Apache')
-depends=('electron')
-makedepends=('grunt-cli' 'npm')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/minbrowser/min/archive/v${pkgver}.tar.gz"
-        'min.desktop'
-        'min.js'
-        'icon.patch')
-sha256sums=('604039570db345b07f73405791d1a224dcea191e4669a1e6d627876d11cb79df'
-            'a779a8daff1d684779ebc6d13ea4c2f09e838df018de41fa19fa3f25aa12e32f'
-            'c22324184b72b3fad5a0aadb4e18182414e0294c5596c26426adc204fd473258'
-            'bb5e55a3c4074e1419f25b0605b77ef622d2870235309e0feed88f790967a936')
-
-prepare() {
-    cd ${pkgname}-${pkgver}
-
-    patch -Np1 -i "${srcdir}"/icon.patch
-}
-
-build() {
-    cd ${pkgname}-${pkgver}
-
-    npm install
-    grunt
-    rm -r node_modules
-
-    npm install --production --no-optional
-}
-
-package() {
-    cd ${pkgname}-${pkgver}
-
-    appdir=/usr/lib/${pkgname}
-
-    install -dm755 "${pkgdir}"${appdir}
-    cp -r * "${pkgdir}"${appdir}
-
-    install -dm755 "${pkgdir}"/usr/share/icons/hicolor/256x256/apps
-    mv icons/icon256.png \
-        "${pkgdir}"/usr/share/icons/hicolor/256x256/apps/${pkgname}.png
-
-    install -Dm755 "${srcdir}"/${pkgname}.js "${pkgdir}"/usr/bin/${pkgname}
-    install -Dm644 "${srcdir}"/${pkgname}.desktop \
-            "${pkgdir}"/usr/share/applications/${pkgname}.desktop
-
-    # Clean up
-    rm "${pkgdir}"${appdir}/dist/build.js
-    rm -r "${pkgdir}"${appdir}/icons
-    rm -r "${pkgdir}"${appdir}/localization
-    rm -r "${pkgdir}"${appdir}/main
-    rm -r "${pkgdir}"${appdir}/scripts
-    find "${pkgdir}"${appdir} \
-        -name "package.json" \
-            -exec sed -e "s|${srcdir}/${pkgname}-${pkgver}|${appdir}|" \
-                -i {} \; \
-        -or -name ".*" -prune -exec rm -r '{}' \; \
-        -or -name "Gruntfile.js" -exec rm '{}' \; \
-        -or -name "Makefile" -exec rm '{}' \; \
-        -or -name "bin" -prune -exec rm -r '{}' \; \
-        -or -name "bin.js" -exec rm '{}' \; \
-        -or -name "bower.json" -exec rm '{}' \; \
-        -or -name "cli.js" -exec rm '{}' \; \
-        -or -name "cmd.js" -exec rm '{}' \; \
-        -or -name "coffee" -prune -exec rm -r '{}' \; \
-        -or -name "example" -prune -exec rm -r '{}' \; \
-        -or -name "examples" -prune -exec rm -r '{}' \; \
-        -or -name "gulpfile.js" -exec rm '{}' \; \
-        -or -name "man" -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 '{}' \;
-}

Copied: min/repos/community-any/PKGBUILD (from rev 417825, min/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-12-24 14:02:10 UTC (rev 417826)
@@ -0,0 +1,79 @@
+# Maintainer: Nicola Squartini <tensor5 at gmail.com>
+
+pkgname=min
+pkgver=1.8.1
+pkgrel=1
+pkgdesc='A smarter, faster web browser'
+arch=('any')
+url='https://minbrowser.github.io/min'
+license=('Apache')
+depends=('electron')
+makedepends=('grunt-cli' 'npm')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/minbrowser/min/archive/v${pkgver}.tar.gz"
+        'min.desktop'
+        'min.js'
+        'icon.patch')
+sha256sums=('56e5f03fc969bd5ebbb900fc89987c28e19e09710590ae9e9db47422b79a7d50'
+            'a779a8daff1d684779ebc6d13ea4c2f09e838df018de41fa19fa3f25aa12e32f'
+            'c22324184b72b3fad5a0aadb4e18182414e0294c5596c26426adc204fd473258'
+            'bb5e55a3c4074e1419f25b0605b77ef622d2870235309e0feed88f790967a936')
+
+prepare() {
+    cd ${pkgname}-${pkgver}
+
+    patch -Np1 -i "${srcdir}"/icon.patch
+}
+
+build() {
+    cd ${pkgname}-${pkgver}
+
+    npm install
+    grunt
+    rm -r node_modules
+
+    npm install --production --no-optional
+}
+
+package() {
+    cd ${pkgname}-${pkgver}
+
+    appdir=/usr/lib/${pkgname}
+
+    install -dm755 "${pkgdir}"${appdir}
+    cp -r * "${pkgdir}"${appdir}
+
+    install -dm755 "${pkgdir}"/usr/share/icons/hicolor/256x256/apps
+    mv icons/icon256.png \
+        "${pkgdir}"/usr/share/icons/hicolor/256x256/apps/${pkgname}.png
+
+    install -Dm755 "${srcdir}"/${pkgname}.js "${pkgdir}"/usr/bin/${pkgname}
+    install -Dm644 "${srcdir}"/${pkgname}.desktop \
+            "${pkgdir}"/usr/share/applications/${pkgname}.desktop
+
+    # Clean up
+    rm "${pkgdir}"${appdir}/dist/build.js
+    rm -r "${pkgdir}"${appdir}/icons
+    rm -r "${pkgdir}"${appdir}/localization
+    rm -r "${pkgdir}"${appdir}/main
+    rm -r "${pkgdir}"${appdir}/scripts
+    find "${pkgdir}"${appdir} \
+        -name "package.json" \
+            -exec sed -e "s|${srcdir}/${pkgname}-${pkgver}|${appdir}|" \
+                -i {} \; \
+        -or -name ".*" -prune -exec rm -r '{}' \; \
+        -or -name "Gruntfile.js" -exec rm '{}' \; \
+        -or -name "Makefile" -exec rm '{}' \; \
+        -or -name "bin" -prune -exec rm -r '{}' \; \
+        -or -name "bin.js" -exec rm '{}' \; \
+        -or -name "bower.json" -exec rm '{}' \; \
+        -or -name "cli.js" -exec rm '{}' \; \
+        -or -name "cmd.js" -exec rm '{}' \; \
+        -or -name "coffee" -prune -exec rm -r '{}' \; \
+        -or -name "example" -prune -exec rm -r '{}' \; \
+        -or -name "examples" -prune -exec rm -r '{}' \; \
+        -or -name "gulpfile.js" -exec rm '{}' \; \
+        -or -name "man" -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 '{}' \;
+}

Deleted: icon.patch
===================================================================
--- icon.patch	2018-12-24 14:01:49 UTC (rev 417825)
+++ icon.patch	2018-12-24 14:02:10 UTC (rev 417826)
@@ -1,10 +0,0 @@
---- a/main/main.js
-+++ b/main/main.js
-@@ -83,7 +83,6 @@
-     minWidth: 320,
-     minHeight: 350,
-     titleBarStyle: 'hiddenInset',
--    icon: __dirname + '/icons/icon256.png',
-     frame: process.platform !== 'win32',
-     backgroundColor: '#fff', // the value of this is ignored, but setting it seems to work around https://github.com/electron/electron/issues/10559
-   })

Copied: min/repos/community-any/icon.patch (from rev 417825, min/trunk/icon.patch)
===================================================================
--- icon.patch	                        (rev 0)
+++ icon.patch	2018-12-24 14:02:10 UTC (rev 417826)
@@ -0,0 +1,10 @@
+--- a/main/main.js
++++ b/main/main.js
+@@ -83,7 +83,6 @@
+     minWidth: 320,
+     minHeight: 350,
+     titleBarStyle: 'hiddenInset',
+-    icon: __dirname + '/icons/icon256.png',
+     frame: process.platform !== 'win32',
+     backgroundColor: '#fff', // the value of this is ignored, but setting it seems to work around https://github.com/electron/electron/issues/10559
+   })

Deleted: min.desktop
===================================================================
--- min.desktop	2018-12-24 14:01:49 UTC (rev 417825)
+++ min.desktop	2018-12-24 14:02:10 UTC (rev 417826)
@@ -1,9 +0,0 @@
-[Desktop Entry]
-Type=Application
-Name=Min
-GenericName=Web Browser
-Comment=A smarter, faster web browser
-Icon=min
-Exec=min
-Categories=GTK;Network;WebBrowser;
-StartupNotify=true

Copied: min/repos/community-any/min.desktop (from rev 417825, min/trunk/min.desktop)
===================================================================
--- min.desktop	                        (rev 0)
+++ min.desktop	2018-12-24 14:02:10 UTC (rev 417826)
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Name=Min
+GenericName=Web Browser
+Comment=A smarter, faster web browser
+Icon=min
+Exec=min
+Categories=GTK;Network;WebBrowser;
+StartupNotify=true

Deleted: min.js
===================================================================
--- min.js	2018-12-24 14:01:49 UTC (rev 417825)
+++ min.js	2018-12-24 14:02:10 UTC (rev 417826)
@@ -1,29 +0,0 @@
-#!/usr/bin/electron
-
-const name = 'min';
-
-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: min/repos/community-any/min.js (from rev 417825, min/trunk/min.js)
===================================================================
--- min.js	                        (rev 0)
+++ min.js	2018-12-24 14:02:10 UTC (rev 417826)
@@ -0,0 +1,29 @@
+#!/usr/bin/electron
+
+const name = 'min';
+
+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);



More information about the arch-commits mailing list