# Template file for 'nmh'
pkgname=nmh
version=1.6
revision=10
build_style=gnu-configure
configure_args="--sysconfdir=/etc/nmh --libdir=/usr/libexec/nmh --with-cyrus-sasl --with-tls"
makedepends="ncurses-devel db-devel libsasl-devel libressl-devel"
conf_files="
 /etc/nmh/MailAliases
 /etc/nmh/components
 /etc/nmh/digestcomps
 /etc/nmh/distcomps
 /etc/nmh/forwcomps
 /etc/nmh/mhl.body
 /etc/nmh/mhl.digest
 /etc/nmh/mhl.format
 /etc/nmh/mhl.forward
 /etc/nmh/mhl.headers
 /etc/nmh/mhl.reply
 /etc/nmh/mhn.defaults
 /etc/nmh/mts.conf
 /etc/nmh/rcvdistcomps
 /etc/nmh/rcvdistcomps.outbox
 /etc/nmh/replcomps
 /etc/nmh/replgroupcomps
 /etc/nmh/scan.MMDDYY
 /etc/nmh/scan.YYYYMMDD
 /etc/nmh/scan.default
 /etc/nmh/scan.mailx
 /etc/nmh/scan.nomime
 /etc/nmh/scan.size
 /etc/nmh/scan.time
 /etc/nmh/scan.timely
 /etc/nmh/scan.unseen"
short_desc="Message Handling System (New RAND Mail Handler)"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="BSD"
homepage="http://www.nongnu.org/nmh/"
distfiles="http://download.savannah.gnu.org/releases/$pkgname/$pkgname-1.6.tar.gz"
checksum=29338ae2bc8722fe8a5904b7b601a63943b72b07b6fcda53f3a354edb6a64bc3

pre_build() {
	make CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS" sbr/ctype-checked.h
}

post_install() {
	vlicense COPYRIGHT LICENSE
}
