summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcharveey2019-08-08 21:02:19 +0000
committercharveey2019-08-08 21:02:19 +0000
commitc8cfc12b4cb9a1c19c0c1591212d6147717ddc12 (patch)
tree4d257e12a26981efba73776af393f4e4091db09c
downloadaur-c8cfc12b4cb9a1c19c0c1591212d6147717ddc12.tar.gz
Initial commit
-rw-r--r--.SRCINFO29
-rw-r--r--0001-fix-french-translation.patch99
-rw-r--r--PKGBUILD56
-rw-r--r--dot.desktop9
-rw-r--r--dot.js15
5 files changed, 208 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..8e502e52ad9e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,29 @@
+pkgbase = dot-bin
+ pkgdesc = A beautiful browser with material UI, with built-in adblock, based on Wexond
+ pkgver = 2.1.0
+ pkgrel = 1
+ url = https://getdot.js.org
+ arch = x86_64
+ license = GPL3
+ makedepends = asar
+ depends = electron
+ depends = gconf
+ depends = libnotify
+ depends = libindicator-gtk2
+ depends = libappindicator-gtk2
+ depends = libxtst
+ depends = nss
+ depends = libxss
+ provides = dot
+ options = !strip
+ source_x86_64 = https://github.com/dot-browser/desktop/releases/download/v2.1.0/Dot.2.1.0.AppImage
+ source_x86_64 = dot.desktop
+ source_x86_64 = dot.js
+ source_x86_64 = 0001-fix-french-translation.patch
+ md5sums_x86_64 = 57715345bcfe249b73804ebe7a4f03c0
+ md5sums_x86_64 = 586b8094810544d86f70f23c6b1956ee
+ md5sums_x86_64 = b3e415a18deddfab9bb56395116b8309
+ md5sums_x86_64 = d3ad4886754d0c3972bfe031695c7587
+
+pkgname = dot-bin
+
diff --git a/0001-fix-french-translation.patch b/0001-fix-french-translation.patch
new file mode 100644
index 000000000000..876ff45b0f72
--- /dev/null
+++ b/0001-fix-french-translation.patch
@@ -0,0 +1,99 @@
+--- lol/locale/fr.json 2019-08-08 20:37:51.058856787 +0000
++++ app/locale/fr.json 2019-08-08 19:41:42.840141459 +0000
+@@ -5,7 +5,7 @@
+ "dot_with_version": "Dot {appVersion}",
+ "dot_full": "Dot Browser",
+ "dot_full_with_version": "Dot Browser {appVersion}",
+- "button_open": "Ouvert",
++ "button_open": "Ouvrir",
+ "button_run": "Exécuter",
+ "button_send": "Envoyer",
+ "button_download": "Télécharger",
+@@ -31,26 +31,26 @@
+ "rich_presence": [
+ {
+ "default_details": "Naviguer sur",
+- "audio_details": "Écouter l'audio sur",
+- "file_details": "Affichage d'un fichier {fileType}",
+- "active_small_text": "Parcourir une page web",
+- "idle_small_text": "Inutile",
++ "audio_details": "Écoute de la musique sur",
++ "file_details": "Affiche un fichier {fileType}",
++ "active_small_text": "Parcour une page web",
++ "idle_small_text": "Inactif",
+ "idle_details": "Dot Browser",
+ "large_text": "Dot Browser {version}"
+ }
+ ],
+ "overlay": [
+ {
+- "dial_top_sites": "Sites haut de gamme",
++ "dial_top_sites": "Sites fréquemment visités",
+ "dial_bookmarks": "Signet",
+ "overview": "Vue d'ensemble",
+ "menu": "Menu",
+ "tab_groups": "Groupes d'onglets",
+ "default_tab_group": "Nouveaux groupes",
+ "world": "Monde",
+- "history_bubble": "Histoire",
++ "history_bubble": "Historique",
+ "bookmarks_bubble": "Signets",
+- "downloads_bubble": "Télécharger",
++ "downloads_bubble": "Téléchargements",
+ "settings_bubble": "Paramètres",
+ "extensions_bubble": "Extensions",
+ "find_bubble": "Trouver",
+@@ -112,8 +112,8 @@
+ ],
+ "downloads": [
+ {
+- "title": "Télécharger",
+- "download_loc": "Emplacement des téléchargeurs"
++ "title": "Téléchargements",
++ "download_loc": "Emplacement des téléchargements"
+ }
+ ],
+ "dev_tools": [
+@@ -129,7 +129,7 @@
+ "title": "À propos de Dot",
+ "thanks_message": "Dot a été rendu possible grâce à",
+ "wxnd_coffee": "et ☕.",
+- "made_in": "Fabriqué en",
++ "made_in": "Créé en",
+ "gb_with": "La Grande-Bretagne avec ",
+ "end": ".",
+ "developers_title": "Équipe de développeurs",
+@@ -151,7 +151,7 @@
+ ],
+ "languages": [
+ {
+- "title": "La langue",
++ "title": "Langue",
+ "download_languages": "Télécharger le dernier pack de langue"
+ }
+ ]
+@@ -159,11 +159,11 @@
+ ],
+ "history": [
+ {
+- "title": "Histoire",
++ "title": "Historique",
+ "clear_browsing_history": "Données de navigation claires",
+ "sort": [
+ {
+- "range_all": "Tout le",
++ "range_all": "Tout",
+ "range_today": "Aujourd'hui",
+ "range_yesterday": "Yesterday",
+ "range_last_week": "La semaine dernière",
+@@ -176,8 +176,8 @@
+ "bookmarks": [
+ {
+ "title": "Signets",
+- "import": "Signets d'importation",
+- "export": "Livres d'exportation",
++ "import": "Importer des signets",
++ "export": "Exporter les signets",
+ "add_bookmark": "Nouveau signet"
+ }
+ ],
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..c3066a2453ad
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,56 @@
+# Maintainer: Ange Kevin Amlaman (charveey) <amlamanangekevin at gmail dot com>
+
+pkgname=dot-bin
+pkgver=2.1.0
+pkgrel=1
+pkgdesc="A beautiful browser with material UI, with built-in adblock, based on Wexond"
+arch=('x86_64')
+url="https://getdot.js.org"
+license=('GPL3')
+provides=('dot')
+depends=('electron' 'gconf' 'libnotify' 'libindicator-gtk2' 'libappindicator-gtk2' 'libxtst' 'nss' 'libxss')
+makedepends=('asar')
+options=('!strip')
+
+source_x86_64=(
+ "https://github.com/dot-browser/desktop/releases/download/v${pkgver}/Dot.${pkgver}.AppImage"
+ 'dot.desktop'
+ 'dot.js'
+ '0001-fix-french-translation.patch'
+)
+
+md5sums_x86_64=('57715345bcfe249b73804ebe7a4f03c0'
+ '586b8094810544d86f70f23c6b1956ee'
+ 'b3e415a18deddfab9bb56395116b8309'
+ 'd3ad4886754d0c3972bfe031695c7587')
+
+package() {
+ cd "${srcdir}"
+
+ # Extract the AppImage
+ "${srcdir}/Dot.${pkgver}.AppImage --appimage-extract"
+
+ #Extract the app.asar
+ asar extract "${srcdir}/squashfs-root/resources/app.asar" "${srcdir}/squashfs-root/resources/app"
+
+ #Fixes some bad translation in french
+ patch -i 0001-fix-french-translation.patch "${srcdir}/squashfs-root/resources/app/locale/fr.json"
+
+ # Do not copy the bundled electron version to reduce package size and
+ # use the most up to date electron version.
+ mkdir -p "${pkgdir}/opt/dot"
+ cp -a "squashfs-root/resources/app/." "${pkgdir}/opt/dot/"
+
+ install -Dm644 "dot.desktop" "${pkgdir}/usr/share/applications/dot.desktop"
+
+ for size in 16 32 128 256 512; do
+ install -Dm644 "${srcdir}/squashfs-root/usr/share/icons/hicolor/0x0/apps/dot.png" \
+ "${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/dot.png"
+ done
+
+ # Symlink dot binary which is located in /opt
+ mkdir -p "${pkgdir}/usr/bin/"
+ ln -sf /opt/dot/dot.js "${pkgdir}/usr/bin/dot"
+ install -Dm755 "dot.js" "${pkgdir}/opt/dot/dot.js"
+
+}
diff --git a/dot.desktop b/dot.desktop
new file mode 100644
index 000000000000..32d0f1c4f1d3
--- /dev/null
+++ b/dot.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Dot
+Comment=A beautiful browser with darn-simple UI, based on Wexond.
+Exec=dot
+Terminal=false
+Type=Application
+Icon=dot
+StartupWMClass=Dot
+Categories=Network;Web;
diff --git a/dot.js b/dot.js
new file mode 100644
index 000000000000..7d14a15feb4a
--- /dev/null
+++ b/dot.js
@@ -0,0 +1,15 @@
+#!/usr/bin/electron
+
+const { join } = require('path');
+const { app } = require('electron');
+
+const APP_DIR = '/opt/dot/';
+
+const conf = require(APP_DIR + 'package.json');
+
+app.setName(conf.name);
+app.setPath('userData', join(app.getPath('appData'), conf.name));
+app.getVersion = () => conf.version;
+
+process.argv.shift();
+require(APP_DIR + conf.main);