mu: update to 1.4.1

While we're at it, partial cross build.

Co-authored-by: Benjamin Slade <slade@jnanam.net>
Closes: #21131
This commit is contained in:
Đoàn Trần Công Danh 2020-04-20 22:55:33 +07:00
parent b74e746f8a
commit 604404eec2

View file

@ -1,17 +1,27 @@
# Template file for 'mu'
pkgname=mu
reverts="1.3.1_1"
version=1.2
revision=2
version=1.4.1
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config emacs texinfo"
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="http://www.djcbsoftware.nl/code/mu/"
homepage="https://www.djcbsoftware.nl/code/mu/"
distfiles="https://github.com/djcb/mu/archive/${version}.tar.gz"
checksum=75ac379ddbaa35ab54035b057bf729537afbef09c71505c2f7209826265e049a
checksum=66ae911abb3d7269514fada08e7a13ad61a205e10209055c41df2f9d17568274
if [ ! "$CROSS_BUILD" ]; then
subpackages="mu4e"
hostmakedepends+=" emacs"
else
# force subpackages to non-empty value,
# else xbps-src will generate it.
subpackages=" "
configure_args+=" --disable-mu4e"
fi
pre_configure() {
sed -i 's,-I${prefix}/include,,' contrib/Makefile.am
@ -19,10 +29,12 @@ pre_configure() {
}
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*
}
}