This pkgbuild is maintained at https://github.com/FabioLolix/PKGBUILD-AUR_fix
About security https://github.com/Foundry376/Mailspring-Sync/issues/9
| 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.000613 |
| First Submitted: | 2024-10-06 17:19 (UTC) |
| Last Updated: | 2026-02-08 22:55 (UTC) |
This pkgbuild is maintained at https://github.com/FabioLolix/PKGBUILD-AUR_fix
About security https://github.com/Foundry376/Mailspring-Sync/issues/9
Is the any plan to use system-wide electron?
No
This package builds for aarch64, but I don't have a device to test on at the moment. In case anyone wants to try, these are the changes needed.
Insecure RPATH is removed by patchelf --remove-rpath if it is still active.
Is the any plan to use system-wide electron?
# 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
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
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).
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
==> 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.
==> 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?
Pinned Comments
FabioLolix commented on 2025-08-23 21:07 (UTC) (edited on 2025-08-23 21:08 (UTC) by FabioLolix)
This pkgbuild is maintained at https://github.com/FabioLolix/PKGBUILD-AUR_fix
About security https://github.com/Foundry376/Mailspring-Sync/issues/9