Package Details: mailspring 1.15.1-1

Git Clone URL: https://aur.archlinux.org/mailspring.git (read-only, click to copy)
Package Base: mailspring
Description: A beautiful, fast and maintained fork of Nylas Mail by one of the original authors.
Upstream URL: https://github.com/Foundry376/Mailspring
Licenses: GPL-3.0-only
Submitter: FabioLolix
Maintainer: FabioLolix
Last Packager: FabioLolix
Votes: 4
Popularity: 0.92
First Submitted: 2024-10-06 17:19 (UTC)
Last Updated: 2025-03-02 17:57 (UTC)

Pinned Comments

FabioLolix commented on 2024-10-06 17:20 (UTC)

For upstream repackaged binaries see https://aur.archlinux.org/packages/mailspring-bin

Latest Comments

dongfengweixiao commented on 2025-03-02 06:24 (UTC)

# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Eric S. Londres <ericlondres@protonmail.com>
# Contributor: Mandeep Sangwan <mandeep@sangwan.me>
# Contributor: Joakim Nylén <me@jnylen.nu>
# Contributor: Rashintha Maduneth <rashinthamaduneth@gmail.com>
# Contributor: Dhananjay Balan <mail@dbalan.in>
# Contributor: ahrs

pkgname=mailspring
pkgver=1.15.1
pkgrel=1
pkgdesc="A beautiful, fast and maintained fork of Nylas Mail by one of the original authors."
arch=(x86_64)
license=(GPL-3.0-only)
url="https://github.com/Foundry376/Mailspring"
depends=(alsa-lib gtk3 libsecret nss)
makedepends=(git npm nodejs grunt-cli python)
source=("${pkgname%-git}::git+https://github.com/Foundry376/Mailspring.git#tag=${pkgver}"
        "mailspring_0001-linux-don-t-build-a-deb-or-rpm-please.patch")
sha256sums=('SKIP'
            'f69a5900faa5ca075027892de5a06471c70739f37644023a08279376f7ec8084')

prepare() {
  cd mailspring
  patch -p1 < ../mailspring_0001-linux-don-t-build-a-deb-or-rpm-please.patch
}

build() {
  cd "${pkgname%-git}/"
  npm install
  npm run-script build
}

package() {
  cd mailspring
  install -d "${pkgdir}/opt/mailspring"
  cp -r app/dist/mailspring-linux-x64/* "${pkgdir}/opt/mailspring"

  install -d "${pkgdir}/usr/bin"
  ln -s /opt/mailspring/mailspring "${pkgdir}/usr/bin/mailspring"

  cd app/build/resources/linux

  install -D Mailspring.desktop.in "${pkgdir}/usr/share/applications/Mailspring.desktop"
  install -D mailspring.appdata.xml.in "${pkgdir}/usr/share/metainfo/mailspring.appdata.xml"

  for s in 16 32 64 128 256 512; do
    install -Dm0644 "icons/$s.png" "${pkgdir}/usr/share/icons/hicolor/$s/apps/mailspring.png"
  done

#Insecure RPATH '/opt/openssl/lib' in file ('opt/mailspring/resources/app.asar.unpacked/mailsync.bin')
}
From 37e60762c08dc642570f913926d4b1a9e402bd7d Mon Sep 17 00:00:00 2001
From: Joey Riches <josephriches@gmail.com>
Date: Wed, 22 Nov 2017 01:49:31 +0000
Subject: [PATCH] linux: don't build a deb or rpm please

Signed-off-by: Joey Riches <josephriches@gmail.com>
---
 app/build/Gruntfile.js                              | 2 +-
 app/build/resources/linux/Mailspring.desktop.in     | 6 +++---
 app/build/resources/linux/mailspring.appdata.xml.in | 8 ++++----
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/app/build/Gruntfile.js b/app/build/Gruntfile.js
index 44f935386..8af49df6e 100644
--- a/app/build/Gruntfile.js
+++ b/app/build/Gruntfile.js
@@ -58,6 +58,6 @@ module.exports = grunt => {
   } else if (grunt.option('platform') === 'darwin') {
     grunt.registerTask('build-client', ['package', 'create-mac-zip']);
   } else if (grunt.option('platform') === 'linux') {
-    grunt.registerTask('build-client', ['package', 'create-deb-installer', 'create-rpm-installer']);
+    grunt.registerTask('build-client', ['package']);
   }
 };
diff --git a/app/build/resources/linux/Mailspring.desktop.in b/app/build/resources/linux/Mailspring.desktop.in
index 5bab3b25d..5d4018036 100644
--- a/app/build/resources/linux/Mailspring.desktop.in
+++ b/app/build/resources/linux/Mailspring.desktop.in
@@ -1,12 +1,12 @@
 [Desktop Entry]
-Name=<%= productName %>
-Comment=<%= description %>
+Name=Mailspring
+Comment=The best email app for people and teams at work
 GenericName=Mail Client
 Exec=mailspring %U
 Icon=mailspring
 Type=Application
 StartupNotify=true
-StartupWMClass=<%= productName %>
+StartupWMClass=Mailspring
 Categories=GNOME;GTK;Network;Email;
 Keywords=email;internet;
 MimeType=x-scheme-handler/mailto;x-scheme-handler/mailspring;
diff --git a/app/build/resources/linux/mailspring.appdata.xml.in b/app/build/resources/linux/mailspring.appdata.xml.in
index 2ab3cb024..64286069f 100644
--- a/app/build/resources/linux/mailspring.appdata.xml.in
+++ b/app/build/resources/linux/mailspring.appdata.xml.in
@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <component type="desktop">
-  <id><%= name %></id>
+  <id>mailspring</id>
   <metadata_license>CC0-1.0</metadata_license>
-  <name><%= productName %></name>
-  <summary><%= description %></summary>
+  <name>Mailspring</name>
+  <summary>The best email app for people and teams at work</summary>
   <description>
     <p>
       Mailspring is a new version of Nylas Mail maintained by one of the original authors. It's
@@ -23,7 +23,7 @@
   <url type="homepage">https://getmailspring.com/</url>
   <url type="bugtracker">https://github.com/Foundry376/Mailspring/issues</url>
   <url type="help">http://support.getmailspring.com/</url>
-  <launchable type="desktop-id"><%= productName %>.desktop</launchable>
+  <launchable type="desktop-id">Mailspring.desktop</launchable>

   <developer_name>Mailspring</developer_name>
   <project_license>GPL-3.0+</project_license>
-- 
2.48.1

FabioLolix commented on 2024-10-09 16:17 (UTC)

The bin installation fails because of the openssl dependency (AUR).

makepkg don't install other AUR pkgbuild, anyway mailspring-bin launch fine without openssl-1.0, I have commented there, meanwhile you can edit it out of the pkgbuild

Th30 commented on 2024-10-09 16:08 (UTC)

I thought it was clear. I succeeded with git clone https://aur.archlinux.org/mailspring.git ; cd mailspring ; makepkg -fsri.

The bin installation fails because of the openssl dependency (AUR).

FabioLolix commented on 2024-10-09 15:56 (UTC)

The build was successful with this method.

Which pkgbuild? which method?

I had tried to build the bin with makepkg with no result

If you can't build a -bin pkgbuild my guess is that there are some problems on your machine

I use pikaur with systemd-dynamic-user.

I don't have time for AUR helpers sorry

Th30 commented on 2024-10-09 15:48 (UTC)

==> ERROR: An error has occurred in build().

I had tried to build the bin with makepkg with no result, but I hadn't tried this package. The build was successful with this method.

I use pikaur with systemd-dynamic-user.

FabioLolix commented on 2024-10-09 15:23 (UTC)

==> ERREUR : Une erreur s’est produite dans build().

generally please launch with LANG=C to post in english

Fatal error: EPERM: operation not permitted, chmod '/tmp/nylas-build/electron-packager/tmp-9gYDlg/chrome-sandbox'
Main processes terminated with: code=exited, status=4/NOPERMISSION

Seems you don't have writing permission there or something like that, what command are you using to build? Does it work with makepkg or devtools?

Th30 commented on 2024-10-09 14:57 (UTC)

I can't compile this package or the mailspring-bin. How to break a working package :/

I have this error here

Fatal error: EPERM: operation not permitted, chmod '/tmp/nylas-build/electron-packager/tmp-9gYDlg/chrome-sandbox'
==> ERREUR : Une erreur s’est produite dans build().
    Abandon…
Finished with result: exit-code
Main processes terminated with: code=exited, status=4/NOPERMISSION
Service runtime: 3min 31.489s
CPU time consumed: 6min 37.490s
Memory peak: 3.4G (swap: 0B)

FabioLolix commented on 2024-10-06 17:20 (UTC)

For upstream repackaged binaries see https://aur.archlinux.org/packages/mailspring-bin