# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=nmh
pkgver=1.7
pkgrel=0
pkgdesc="nmh is a powerful electronic mail handling system"
url="http://www.nongnu.org/nmh/"
arch="all"
license="BSD"
makedepends="libressl-dev ncurses-dev gnutls-dev readline-dev gdbm-dev"
subpackages="$pkgname-doc"
source="http://download.savannah.nongnu.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.gz"

builddir=${srcdir}/${pkgname}-${pkgver}
build() {
	cd "$builddir"
        ./configure \
           --host=$CHOST \
           --build=$CBUILD \
           --prefix=/usr \
           --with-readline \
           --with-tls \
           --sysconfdir=/etc/nmh
        make
}

package() {
	cd "$builddir"
        make DESTDIR="$pkgdir" install
}

sha512sums="68394c23d776b066d50b75486c985eb59e8545d1f928d78c663be1cd28bf1f7af88fad30e9a7b6e3b80dda1fd6f04815c4b1a6accbf0e960e523742e335dec86  nmh-1.7.tar.gz"
