Created
June 13, 2023 18:32
-
-
Save ntBre/9c18d74928da47e60f6e1393f72a3857 to your computer and use it in GitHub Desktop.
Modified PKGBUILD for mu 1.8.14 for evil-collection compatibility. Patches mu-error.hh to enable building with recent arch packages.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --unified --recursive --text mu-1.8.14/lib/utils/mu-error.hh patched/lib/utils/mu-error.hh | |
--- mu-1.8.14/lib/utils/mu-error.hh 2023-01-29 05:18:51.000000000 -0500 | |
+++ patched/lib/utils/mu-error.hh 2023-06-13 14:18:49.654747938 -0400 | |
@@ -24,6 +24,7 @@ | |
#include "mu-utils-format.hh" | |
#include "mu-util.h" | |
#include <glib.h> | |
+#include <cstdint> | |
namespace Mu { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Marcel Röthke <[email protected]> | |
# Contributor: Pierre Neidhardt <[email protected]> | |
# Contributor: csllbr; Popsch <[email protected]> | |
pkgname=mu | |
pkgver=1.8.14 | |
pkgrel=1 | |
pkgdesc="Maildir indexer/searcher and Emacs client (mu4e)" | |
arch=("x86_64" "armv7h") | |
url="http://www.djcbsoftware.nl/code/mu" | |
license=("GPL") | |
depends=("gmime3" "xapian-core") | |
makedepends=("emacs" "meson") | |
optdepends=("emacs: mu4e support") | |
source=( | |
"https://github.com/djcb/mu/releases/download/v${pkgver}/mu-${pkgver}.tar.xz" | |
"mu.patch" | |
) | |
sha256sums=('1a9c5e15b5e8b67622f7e58dfadd453abf232c0b715bd5f89b955e704455219c' | |
'46344aaa3f6cc3d690a754f75e35dcc213bc91bdadb7caed404b26e1070713de') | |
prepare() { | |
cd "$pkgname-$pkgver" | |
patch --forward --strip=1 --input=$srcdir/mu.patch | |
arch-meson \ | |
-Dc_args="${CFLAGS}" \ | |
-Dcpp_args="${CFLAGS}" \ | |
-Dc_link_args="${LDFLAGS}" \ | |
-Dcpp_link_args="${LDFLAGS}" \ | |
-Dguile=disabled \ | |
-Dreadline=enabled \ | |
build | |
} | |
build() { | |
cd "$pkgname-$pkgver" | |
ninja -C build | |
} | |
package() { | |
cd "$pkgname-$pkgver" | |
DESTDIR="${pkgdir}" meson install -C build | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment