void-packages/srcpkgs/mu/template
Benjamin Slade cd0bcc861a mu: update to 1.4.10
sgn: let xbps-src figures out subpackages, make mu4e depends exact
version of mu.

Closes: #22730
2020-06-10 23:43:39 +07:00

38 lines
1 KiB
Bash

# Template file for 'mu'
pkgname=mu
version=1.4.10
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config texinfo glib-devel"
makedepends="xapian-core-devel gmime3-devel libuuid-devel"
checkdepends="tzdata"
short_desc="Emacs-based tool for dealing with e-mail stored in the Maildir-format"
maintainer="Benjamin Slade <slade@jnanam.net>"
license="GPL-3.0-or-later"
homepage="https://www.djcbsoftware.nl/code/mu/"
distfiles="https://github.com/djcb/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.xz"
checksum=4675f14a43b4853e14a3e0892051787d1b82df48ea1bd4375172893676cd7e6d
if [ ! "$CROSS_BUILD" ]; then
hostmakedepends+=" emacs"
else
configure_args+=" --disable-mu4e"
fi
pre_configure() {
sed -i 's,-I${prefix}/include,,' contrib/Makefile.am
autoreconf -fi
}
if [ ! "$CROSS_BUILD" ]; then
mu4e_package() {
archs=noarch
short_desc+=" - Emacs frontend"
depends="${sourcepkg}-${version}_${revision} emacs"
pkg_install() {
vmove usr/share/emacs
vmove usr/share/info
vmove usr/share/doc/mu/mu4e*
}
}
fi