Package Details: proton-mail-export 1.0.5-1

Git Clone URL: https://aur.archlinux.org/proton-mail-export.git (read-only, click to copy)
Package Base: proton-mail-export
Description: Allows to export emails as eml files
Upstream URL: https://proton.me/support/proton-mail-export-tool
Licenses: GPL-3.0-only
Submitter: Pierre
Maintainer: Pierre
Last Packager: Pierre
Votes: 1
Popularity: 0.000304
First Submitted: 2024-05-09 13:16 (UTC)
Last Updated: 2025-04-30 15:23 (UTC)

Latest Comments

vcalv commented on 2025-06-18 03:53 (UTC) (edited on 2025-06-18 18:40 (UTC) by vcalv)

I've cleaned up the PKGBUILD to:

  • not use git anymore
  • Not download, build, nor use vcpkg
  • build doesn't use zip or unzip so removed deps
  • Added makedepends to enable build
  • Confirmed by clean build inside a chroot

The differences are minimally disruptive but I believe are an improvement and make the build time shorter

diff --git a/PKGBUILD b/PKGBUILD

index e13f4d8..87e3c50 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,20 +8,20 @@ arch=('x86_64')
 url='https://proton.me/support/proton-mail-export-tool'
 license=('GPL-3.0-only')
 depends=('gcc-libs' 'glibc')
-makedepends=('git' 'cmake' 'clang' 'go' 'zip' 'unzip')
+makedepends=('cmake' 'clang' 'go' 'catch2' 'cxxopts' 'fmt')
 options=('!debug')
-source=("git+https://github.com/ProtonMail/${pkgname}.git#tag=v${pkgver}")
-sha256sums=('253e4ec4e037d824074200a101ffef6bd76b1ac8dcfcb30e9d7b2171772dda84')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ProtonMail/proton-mail-export/archive/refs/tags/v${pkgver}.tar.gz")
+sha256sums=('962f5ab065fd3f6e1b973ed622e233852332365f3d4e2ed85b0a2e03a62e6803')

 prepare() {
-    cd "$pkgname"
-    git submodule update --init --recursive
+    cd "$pkgname-$pkgver"
     # see https://github.com/ProtonMail/proton-mail-export/issues/4
     sed 's/^\s*execPath = etcpp::getExecutableDir();$/execPath = std::filesystem::current_path();/g' -i cli/bin/main.cpp
+    echo "" > cmake/vcpkg_setup.cmake
 }

 build() {
-    cmake -B build -S "$pkgname" \
+    cmake -B build -S "$pkgname-$pkgver" \
         -DCMAKE_BUILD_TYPE='None' \
         -DCMAKE_INSTALL_PREFIX='/usr' \
         -Wno-dev

vcalv commented on 2025-06-18 02:40 (UTC) (edited on 2025-06-18 02:40 (UTC) by vcalv)

Please consider using the tarball available at https://github.com/ProtonMail/proton-mail-export/releases

Specifically https://github.com/ProtonMail/proton-mail-export/archive/refs/tags/v1.0.5.tar.gz for this version

And maybe I'm out of line but vcpkg is on the official repository so you can add it as a build dependency.

micwoj92 commented on 2025-05-12 21:20 (UTC)

Please add submodules as separate entries in source array: https://wiki.archlinux.org/title/VCS_package_guidelines#Git_submodules