Package Details: ferdi 5.5.0-8

Git Clone URL: https://aur.archlinux.org/ferdi.git (read-only, click to copy)
Package Base: ferdi
Description: A messaging browser that allows you to combine your favorite messaging services into one application
Upstream URL: https://getferdi.com
Keywords: app browser franz gmail messenger slack whatsapp
Licenses: Apache
Submitter: AG_Caesar
Maintainer: dpeukert
Last Packager: dpeukert
Votes: 12
Popularity: 0.33
First Submitted: 2019-09-25 13:30
Last Updated: 2020-08-06 07:10

Pinned Comments

dpeukert commented on 2020-02-16 11:54

The PKGBUILD for this package is hosted here (contributions are welcome!): https://gitlab.com/dpeukert/pkgbuilds/tree/main/ferdi

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

jlaunay commented on 2020-04-28 15:55

Build failed (same with ferdi-git) with the following error: npm ERR! cb() never called!

zephyr0 commented on 2020-04-27 12:22

Build worked but when started, I get the following error with 5.5.0-2

(electron) The default value of app.allowRendererProcessReuse is deprecated, it is currently "false".  It will change to be "true" in Electron 9.  For more information please check https://github.com/electron/electron/issues/18397
Segmentation fault (core dumped)

dpeukert commented on 2020-04-10 10:50

@alexm Sorry 'bout that, fixed.

alexm commented on 2020-04-08 10:53

'git' should be added into makedepends

Otherwise it can't be built inside a fresh chrooted configuration.

dpeukert commented on 2020-02-16 11:54

The PKGBUILD for this package is hosted here (contributions are welcome!): https://gitlab.com/dpeukert/pkgbuilds/tree/main/ferdi

lsf commented on 2019-12-15 16:30

Looks like it's just missing the git submodules.

This should work:

(/edit: fixed the patch, didn't apply cleanly)

diff --git a/PKGBUILD b/PKGBUILD
index 496380c..3205afe 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ pkgname=ferdi
 _pkgver="5.4.1-beta.2"
 # use beta because of electron 7 compatibility
 pkgver=${_pkgver//-/_}
-pkgrel=1
+pkgrel=2
 pkgdesc='Ferdi is a messaging browser that allows you to combine your favorite messaging services into one application.'
 arch=(x86_64 i686)
 url='https://getferdi.com/'
@@ -15,10 +15,16 @@ license=(Apache)
 depends=(electron)
 conflicts=('ferdi-git')
 makedepends=(expac git npm python2)
+_recipes=ecf037c
+_server=cca6cd9
 source=("git+https://github.com/getferdi/$pkgname#tag=v$_pkgver"
+        "git+https://github.com/getferdi/recipes#commit=${_recipes}"
+        "git+https://github.com/getferdi/internal-server#commit=${_server}"
         'ferdi.desktop'
         'ferdi.sh')
 sha512sums=('SKIP'
+            'SKIP'
+            'SKIP'
             'SKIP'
             'SKIP')

@@ -27,8 +33,12 @@ prepare() {
   mkdir python2_path
   ln -s `which python2` python2_path/python

-  # Small patching
   cd ferdi
+  git submodule init
+  git config submodule.recipes.url $srcdir/recipes
+  git config submodule.src/internal-server.url $srcdir/internal-server
+
+  git submodule update --init --recursive

   # Prevent ferdi from being launched in dev mode
   sed -i "s|export const isDevMode = .*|export const isDevMode = false;|g" \
@@ -37,13 +47,19 @@ prepare() {
     src/index.js

   # Adjust the electron version to use when building
-  # electron_version="`expac %v electron4 | cut -d'-' -f1`"
-  # sed -i "s|\(\s\+\"electron4\":\).*,|\1 \"$electron_version\",|" package.json
+  electron_version="`expac %v electron | cut -d'-' -f1`"
+  sed -i "s|\(\s\+\"electron\":\).*,|\1 \"$electron_version\",|" package.json
+
+  # Better configuration for npm cache and calling installed binaries
+  export npm_config_cache="$srcdir"/npm_cache
+  export PATH="$srcdir/$pkgname/node_modules/.bin:$srcdir/python2_path:$PATH"

   # Adjust node-sass version to avoid build issues
-  npm install "node-sass@4.12.0"
+  npm install "node-sass@4.13.0"

   # Prepare the packages for building
+  npm install lerna
+  lerna bootstrap
 }

 build() {
@@ -53,9 +69,6 @@ build() {
   export npm_config_cache="$srcdir"/npm_cache
   export PATH="$srcdir/ferdi/node_modules/.bin:$srcdir/python2_path:$PATH"

-  npm install lerna
-  lerna bootstrap
- 
   gulp build
   electron-builder --linux dir
 }
diff --git a/ferdi.sh b/ferdi.sh
index 3e1eb77..1e01e72 100644
--- a/ferdi.sh
+++ b/ferdi.sh
@@ -1,3 +1,3 @@
 #!/bin/sh

-electron4 /usr/lib/ferdi/resources/app.asar "$@"
+electron /usr/lib/ferdi/resources/app.asar "$@"

connexion2000 commented on 2019-12-11 15:28

Unfortunatelly, it didn't help. Still same error.

AG_Caesar commented on 2019-12-11 13:57

Can you please try again? I think I fixed the error with the electron version

connexion2000 commented on 2019-12-11 13:26

I'm on arch, building using yay. Clean build also giving this error.

infinitnet commented on 2019-12-11 13:24

Electron is on 7.1.3