void-packages/srcpkgs/mutt/template
Đoàn Trần Công Danh c9688184e2 mutt: update to 2.0.7.
2021-05-05 07:29:23 +07:00

30 lines
1.2 KiB
Bash

# Template file for 'mutt'
pkgname=mutt
version=2.0.7
revision=1
build_style=gnu-configure
configure_args="--enable-pop --enable-imap --enable-smtp --enable-hcache
--enable-gpgme --with-regex --with-idn2 --with-ssl --with-sasl --enable-sidebar
--with-gpgme-prefix=${XBPS_CROSS_BASE}/usr --sysconfdir=/etc/$pkgname
--with-gdbm=${XBPS_CROSS_BASE}/usr"
conf_files="/etc/${pkgname}/Muttrc"
hostmakedepends="libidn2-devel perl pkg-config"
makedepends="gdbm-devel gpgme-devel libidn2-devel openssl-devel libsasl-devel
ncurses-devel"
depends="cyrus-sasl-modules mime-types"
short_desc="Mutt Mail Client"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://www.mutt.org"
changelog="http://mutt.org/relnotes/${version%.*}"
distfiles="http://ftp.mutt.org/pub/mutt/${pkgname}-${version}.tar.gz"
checksum=957688c6a521561992d4f2f27cf9feb239c7c6c0042c6061c0e474a7dd26cc91
post_install() {
# provided by mime-types
rm "${DESTDIR}"/etc/$pkgname/mime.*
ln -s /etc/mime.types "${DESTDIR}/etc/${pkgname}/mime.types"
# move dist to examples dir
vsconf contrib/gpg.rc Muttrc.gpg.dist
mv "${DESTDIR}/etc/$pkgname/Muttrc.dist" "${DESTDIR}/usr/share/examples/${pkgname}"
}