summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/min/icon.patch12
-rw-r--r--nonfree/min/PKGBUILD (renamed from libre/min/PKGBUILD)31
-rw-r--r--nonfree/min/icon.patch10
-rw-r--r--nonfree/min/min.desktop (renamed from libre/min/min.desktop)0
-rw-r--r--nonfree/min/min.js (renamed from libre/min/min.js)0
-rw-r--r--nonfree/min/remove_nonprivacy_options.patch (renamed from libre/min/remove_nonprivacy_options.patch)0
6 files changed, 30 insertions, 23 deletions
diff --git a/libre/min/icon.patch b/libre/min/icon.patch
deleted file mode 100644
index 5b85742fb..000000000
--- a/libre/min/icon.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- a/main/main.js
-+++ b/main/main.js
-@@ -78,8 +78,7 @@
- y: bounds.y,
- minWidth: 320,
- minHeight: 500,
-- titleBarStyle: 'hidden-inset',
-- icon: __dirname + '/icons/icon256.png'
-+ titleBarStyle: 'hidden-inset'
- })
-
- // and load the index.html of the app.
diff --git a/libre/min/PKGBUILD b/nonfree/min/PKGBUILD
index 6a859d46f..5787f475b 100644
--- a/libre/min/PKGBUILD
+++ b/nonfree/min/PKGBUILD
@@ -1,25 +1,26 @@
-# $Id: PKGBUILD 199506 2016-12-15 13:30:22Z tensor5 $
# Maintainer (Arch): Nicola Squartini <tensor5@gmail.com>
# Maintainer: André Silva <emulatorman@hyperbola.info>
pkgname=min
-pkgver=1.5.1
-pkgrel=1.parabola2
-pkgdesc='A smarter, faster web browser, without non-privacy search engines'
+pkgver=1.8.1
+pkgrel=1
+pkgrel+=.parabola1
+pkgdesc='A smarter, faster web browser'
+pkgdesc+=', without non-privacy search engines'
arch=('any')
url='https://minbrowser.github.io/min'
license=('Apache')
depends=('electron')
-makedepends=('nodejs-grunt-cli' 'npm')
+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'
'remove_nonprivacy_options.patch')
-sha256sums=('7ccaf8fbcc5b72093b4077b184fef68262b1a4d7d94c4b8cfae2a01b5bdefbd4'
+sha256sums=('56e5f03fc969bd5ebbb900fc89987c28e19e09710590ae9e9db47422b79a7d50'
'a779a8daff1d684779ebc6d13ea4c2f09e838df018de41fa19fa3f25aa12e32f'
'c22324184b72b3fad5a0aadb4e18182414e0294c5596c26426adc204fd473258'
- 'f73d138d68f90e11a60128099b57eecb84a7d067e7f6883ff98924c5f4a61ea8'
+ 'bb5e55a3c4074e1419f25b0605b77ef622d2870235309e0feed88f790967a936'
'76c8cc886007be01301c619b3ac1fc86369448e641ca9ae667a2cdd84b9c2276')
prepare() {
@@ -32,11 +33,11 @@ prepare() {
build() {
cd ${pkgname}-${pkgver}
- npm install grunt grunt-contrib-concat grunt-contrib-uglify
+ npm install
grunt
- npm uninstall grunt grunt-contrib-concat grunt-contrib-uglify
+ rm -r node_modules
- npm install --production
+ npm install --production --no-optional
}
package() {
@@ -56,9 +57,11 @@ package() {
"${pkgdir}"/usr/share/applications/${pkgname}.desktop
# Clean up
- rm "${pkgdir}"${appdir}/dist/{build,webview}.js
+ 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}|" \
@@ -66,11 +69,17 @@ package() {
-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 '{}' \;
}
diff --git a/nonfree/min/icon.patch b/nonfree/min/icon.patch
new file mode 100644
index 000000000..dd8194718
--- /dev/null
+++ b/nonfree/min/icon.patch
@@ -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
+ })
diff --git a/libre/min/min.desktop b/nonfree/min/min.desktop
index dbf9ca61f..dbf9ca61f 100644
--- a/libre/min/min.desktop
+++ b/nonfree/min/min.desktop
diff --git a/libre/min/min.js b/nonfree/min/min.js
index e3bfeba0f..e3bfeba0f 100644
--- a/libre/min/min.js
+++ b/nonfree/min/min.js
diff --git a/libre/min/remove_nonprivacy_options.patch b/nonfree/min/remove_nonprivacy_options.patch
index 76aedd419..76aedd419 100644
--- a/libre/min/remove_nonprivacy_options.patch
+++ b/nonfree/min/remove_nonprivacy_options.patch