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

Nicola Squartini tensor5 at gemini.archlinux.org
Wed Oct 27 07:49:53 UTC 2021


    Date: Wednesday, October 27, 2021 @ 07:49:53
  Author: tensor5
Revision: 1034689

archrelease: copy trunk to community-x86_64

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

-------------+
 PKGBUILD    |  176 +++++++++++++++++++++++++++++-----------------------------
 icon.patch  |   22 +++----
 min.desktop |   20 +++---
 min.js      |   58 +++++++++----------
 4 files changed, 138 insertions(+), 138 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-10-27 07:49:43 UTC (rev 1034688)
+++ PKGBUILD	2021-10-27 07:49:53 UTC (rev 1034689)
@@ -1,88 +0,0 @@
-# Maintainer: Nicola Squartini <tensor5 at gmail.com>
-
-pkgname=min
-pkgver=1.21.0
-_commit=9016402b986fb8c63c0136cdefbbed56eabbc833
-pkgrel=2
-pkgdesc='A fast, minimal browser that protects your privacy'
-arch=('x86_64')
-url='https://minbrowser.org/'
-license=('Apache')
-depends=('electron14' 'libsecret')
-makedepends=('git' 'npm')
-options=(!emptydirs)
-source=("git+https://github.com/minbrowser/min.git#commit=${_commit}"
-        'min.desktop'
-        'min.js'
-        'icon.patch')
-sha256sums=('SKIP'
-            'a069caac07638ca2bafde5f96a4db646ec7484741ff9b44788c2e159b5142650'
-            '4d62c003422cf60e075d28d2938fb2cc336033347c5d1df4dd8e363d31cbb51a'
-            '2067c03bd0a781d8a16000c5a0351b2315ce439531e8300265f9c95576d599c4')
-
-prepare() {
-    cd ${pkgname}
-
-    patch -Np1 -i "${srcdir}"/icon.patch
-}
-
-build() {
-    cd ${pkgname}
-
-    npm install
-    npm run build
-    rm -r node_modules
-
-    npm install --production --no-optional
-}
-
-package() {
-    cd ${pkgname}
-
-    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}|${appdir}|" \
-                -i {} \; \
-        -or -name ".*" -prune -exec rm -r '{}' \; \
-        -or -name "*.Makefile" -exec rm '{}' \; \
-        -or -name "*.h" -exec rm '{}' \; \
-        -or -name "*.c" -exec rm '{}' \; \
-        -or -name "*.cc" -exec rm '{}' \; \
-        -or -name "*.gypi" -exec rm '{}' \; \
-        -or -name "*.mk" -exec rm '{}' \; \
-        -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 "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 '{}' \;
-}

Copied: min/repos/community-x86_64/PKGBUILD (from rev 1034688, min/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-10-27 07:49:53 UTC (rev 1034689)
@@ -0,0 +1,88 @@
+# Maintainer: Nicola Squartini <tensor5 at gmail.com>
+
+pkgname=min
+pkgver=1.22.0
+_commit=34e7caf6a2cd2962f33d9a3cfdad98c60ebb07e0
+pkgrel=1
+pkgdesc='A fast, minimal browser that protects your privacy'
+arch=('x86_64')
+url='https://minbrowser.org/'
+license=('Apache')
+depends=('electron15' 'libsecret')
+makedepends=('git' 'npm')
+options=(!emptydirs)
+source=("git+https://github.com/minbrowser/min.git#commit=${_commit}"
+        'min.desktop'
+        'min.js'
+        'icon.patch')
+sha256sums=('SKIP'
+            'a069caac07638ca2bafde5f96a4db646ec7484741ff9b44788c2e159b5142650'
+            '9e3aa1c32351da818f575eddc699818f900511e4218a4e8a83a6b53220812b84'
+            'ac24fe55be98edf115602533b8e892ebc5c0841a4edb412ef4ed29a07d9d89dd')
+
+prepare() {
+    cd ${pkgname}
+
+    patch -Np1 -i "${srcdir}"/icon.patch
+}
+
+build() {
+    cd ${pkgname}
+
+    npm install
+    npm run build
+    rm -r node_modules
+
+    npm install --production --no-optional
+}
+
+package() {
+    cd ${pkgname}
+
+    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}|${appdir}|" \
+                -i {} \; \
+        -or -name ".*" -prune -exec rm -r '{}' \; \
+        -or -name "*.Makefile" -exec rm '{}' \; \
+        -or -name "*.h" -exec rm '{}' \; \
+        -or -name "*.c" -exec rm '{}' \; \
+        -or -name "*.cc" -exec rm '{}' \; \
+        -or -name "*.gypi" -exec rm '{}' \; \
+        -or -name "*.mk" -exec rm '{}' \; \
+        -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 "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 '{}' \;
+}

Deleted: icon.patch
===================================================================
--- icon.patch	2021-10-27 07:49:43 UTC (rev 1034688)
+++ icon.patch	2021-10-27 07:49:53 UTC (rev 1034689)
@@ -1,11 +0,0 @@
---- a/main/main.js
-+++ b/main/main.js
-@@ -180,7 +180,7 @@
-     minHeight: 350,
-     titleBarStyle: settings.get('useSeparateTitlebar') ? 'default' : 'hidden',
-     trafficLightPosition: { x: 12, y: 10 },
--    icon: __dirname + '/icons/icon256.png',
-+    icon: '/usr/share/icons/hicolor/256x256/apps/min.png',
-     frame: settings.get('useSeparateTitlebar'),
-     alwaysOnTop: settings.get('windowAlwaysOnTop'),
-     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-x86_64/icon.patch (from rev 1034688, min/trunk/icon.patch)
===================================================================
--- icon.patch	                        (rev 0)
+++ icon.patch	2021-10-27 07:49:53 UTC (rev 1034689)
@@ -0,0 +1,11 @@
+--- a/main/main.js
++++ b/main/main.js
+@@ -181,7 +181,7 @@
+     minHeight: 350,
+     titleBarStyle: settings.get('useSeparateTitlebar') ? 'default' : 'hidden',
+     trafficLightPosition: { x: 12, y: 10 },
+-    icon: __dirname + '/icons/icon256.png',
++    icon: '/usr/share/icons/hicolor/256x256/apps/min.png',
+     frame: settings.get('useSeparateTitlebar'),
+     alwaysOnTop: settings.get('windowAlwaysOnTop'),
+     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	2021-10-27 07:49:43 UTC (rev 1034688)
+++ min.desktop	2021-10-27 07:49:53 UTC (rev 1034689)
@@ -1,10 +0,0 @@
-[Desktop Entry]
-Type=Application
-Name=Min
-GenericName=Web Browser
-Comment=A fast, minimal browser that protects your privacy
-Icon=min
-Exec=min %U
-Categories=GTK;Network;WebBrowser;
-StartupNotify=true
-MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;

Copied: min/repos/community-x86_64/min.desktop (from rev 1034688, min/trunk/min.desktop)
===================================================================
--- min.desktop	                        (rev 0)
+++ min.desktop	2021-10-27 07:49:53 UTC (rev 1034689)
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Name=Min
+GenericName=Web Browser
+Comment=A fast, minimal browser that protects your privacy
+Icon=min
+Exec=min %U
+Categories=GTK;Network;WebBrowser;
+StartupNotify=true
+MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;

Deleted: min.js
===================================================================
--- min.js	2021-10-27 07:49:43 UTC (rev 1034688)
+++ min.js	2021-10-27 07:49:53 UTC (rev 1034689)
@@ -1,29 +0,0 @@
-#!/usr/bin/electron14
-
-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-x86_64/min.js (from rev 1034688, min/trunk/min.js)
===================================================================
--- min.js	                        (rev 0)
+++ min.js	2021-10-27 07:49:53 UTC (rev 1034689)
@@ -0,0 +1,29 @@
+#!/usr/bin/electron15
+
+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