void-packages/srcpkgs/mutt/template
2016-05-01 10:33:27 +02:00

32 lines
1.1 KiB
Bash

# Template file for 'mutt'
pkgname=mutt
version=1.6.1
revision=1
build_style=gnu-configure
configure_args="--enable-pop --enable-imap --enable-smtp --enable-hcache
--enable-gpgme --with-regex --with-idn --with-ssl --with-sasl
--with-gpgme-prefix=${XBPS_CROSS_BASE}/usr
--with-gdbm=${XBPS_CROSS_BASE}/usr mutt_cv_regex_broken=no"
hostmakedepends="perl pkg-config libidn-devel"
makedepends="ncurses-devel libressl-devel libidn-devel gpgme-devel gdbm-devel
libsasl-devel"
depends="mime-types"
conf_files="/etc/Muttrc"
short_desc="The Mutt Mail Client"
maintainer="Jan S. <jan.schreib@gmail.com>"
license="GPL-2"
homepage="http://www.mutt.org"
distfiles="http://ftp.mutt.org/pub/mutt/${pkgname}-${version}.tar.gz"
checksum=98b26cecc6b1713082fc880344fa345c20bd7ded6459abe18c84429c7cf8ed20
pre_build() {
make CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS -fPIC" CPPFLAGS= mutt_md5
make CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS -fPIC" CPPFLAGS= -C doc
}
post_install() {
rm ${DESTDIR}/etc/Muttrc.dist
rm ${DESTDIR}/etc/mime.types{,.dist}
rm ${DESTDIR}/usr/bin/{flea,muttbug}
rm ${DESTDIR}/usr/share/man/man1/{flea,muttbug}.1
vinstall contrib/gpg.rc 644 etc Muttrc.gpg.dist
}