Package Details: meli-git 0.6.2.r236.gb085703-3

Git Clone URL: https://aur.archlinux.org/meli-git.git (read-only, click to copy)
Package Base: meli-git
Description: experimental terminal mail client
Upstream URL: https://meli.delivery
Licenses: GPL3
Conflicts: meli
Provides: meli
Submitter: aereaux
Maintainer: alerque
Last Packager: alerque
Votes: 3
Popularity: 0.000096
First Submitted: 2019-07-18 03:46 (UTC)
Last Updated: 2021-08-05 21:37 (UTC)

Latest Comments

alerque commented on 2021-11-27 05:13 (UTC) (edited on 2021-11-27 05:14 (UTC) by alerque)

@dmfay I'm sorry, but all of those changes are incorrect --- or at least not correct as defaults for everybody. Arch packaging guidelines for rust suggest --all-features where possible/reasonable. In this case it makes perfect sense. If you want to compile with only some features that is fine, but I'm not making that the default. As for mandoc, it is still required if you want fresh man pages. See the build.rs file and documentation. You got away without it because you disabled the feature that updates the man pages. If you'd like an easy way to compile without conflicts on your host system use extra-x86_64-build from the devtools package.

dmfay commented on 2021-11-25 05:37 (UTC)

mandoc doesn't seem to be required to build the package, and conflicts with man-db. I've removed that dependency and changed the build to --features jmap:

diff --git a/PKGBUILD b/PKGBUILD
index 8280ccb..3192a52 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
 # Contributor: aereaux <aidan@jmad.org>

 pkgname=meli-git
-pkgver=0.6.2.r236.gb085703
-pkgrel=3
+pkgver=0.7.2.r4.g330a2b2
+pkgrel=1
 pkgdesc='experimental terminal mail client'
 arch=(x86_64)
 url=https://meli.delivery
@@ -13,7 +13,6 @@ depends=(curl
          pcre2
          sqlite)
 makedepends=(git
-             mandoc
              cargo)
 provides=("${pkgname%-git}=$pkgver")
 conflicts=("${pkgname%-git}")
@@ -35,7 +34,7 @@ build() {
        cd "${pkgname%-git}"
        export RUSTUP_TOOLCHAIN=stable
        export CARGO_TARGET_DIR=target
-       cargo build --frozen --release --all-features
+       cargo build --frozen --release --features jmap
 }

 check() {

alerque commented on 2021-10-27 16:33 (UTC)

@freswa That sounds like a good move actually. I'm currently traveling though so it's a little hard to sit down with enough time to make and test the changes. I would be happy to accept a patch to that affect either here in comments via git format-patch against the AUR sources here or alternatively as a PR on against this GitHub repository.

freswa commented on 2021-10-26 17:56 (UTC) (edited on 2021-10-26 18:00 (UTC) by freswa)

This currently builds with all features, which includes debug-tracing. It makes running meli really troublesome if stderr is not redirected. Could you change the build to --features jmap (dbus-notifications is not required, cause it's a default feature)? Thank you!

aereaux commented on 2021-08-02 21:20 (UTC)

I haven't used or updated this package in quite a while, feel free to make any changes/improvements you think would be useful.

alerque commented on 2021-08-02 21:10 (UTC)

Somehow I missed this build while searching and ended up making my own—only to find this in the way. I had a look and unfortunately there is a small litany of things wrong with this. You are missing some dependencies needed for a clean build, missing some Rust tweaks, the version scheme doesn't work with vercmp, and so on. Would you please consider adding me as a co-maintainer and I'll get this fixed up? For reference here is my working PKGBUILD:

# Maintainer: Caleb Maclennan <caleb@alerque.com>

pkgname=meli-git
pkgver=0.6.2.r236.gb085703
pkgrel=1
pkgdesc='experimental terminal mail client'
arch=(x86_64)
url=https://meli.delivery
license=(GPL3)
depends=(curl
         dbus
         pcre2
         sqlite)
makedepends=(git
             mandoc
             rust)
provides=("${pkgname%-git}=$pkgver")
conflicts=("${pkgname%-git}")
source=("git+https://git.meli.delivery/meli/meli.git")
sha256sums=('SKIP')

pkgver() {
    cd "${pkgname%-git}"
    git describe --long --tags --abbrev=7 --tags HEAD |
        sed 's/^\(pre\)\?-\?\(v\|alpha\|beta\|rc\)\?-\?//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
    cd "${pkgname%-git}"
    cargo fetch --locked
}

build() {
    cd "${pkgname%-git}"
    cargo build --offline --release --all-features
}

package() {
    cd "${pkgname%-git}"
    install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${pkgname%-git}"
}