# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=email
pkgver=3.1.4
pkgrel=4
pkgdesc="A command line SMTP client that's simple"
url="http://www.cleancode.org/projects/email"
arch="all"
license="GPL"
depends="libressl"
makedepends="libressl-dev"
source="http://dev.alpinelinux.org/archive/email/email-$pkgver.tar.gz"

subpackages="$pkgname-doc"

prepare() {
	cd "$srcdir"/$pkgname-*
	sed -i -e 's/^\(VCARD.*\)/\# \1/' email.conf
}

build() {
	cd "$srcdir"/$pkgname-*
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-*
	make DESTDIR="$pkgdir" install
}

md5sums="b9d5d201bef581d601d73a524373db60  email-3.1.4.tar.gz"
sha256sums="21dcc31aa04c7c50bff59fd3c5a74648825af69925501c0c3849380209a4c4d2  email-3.1.4.tar.gz"
sha512sums="1c57bd0465e82f8a44bea83936e2c48d1fbd1faecf3dfccba6be857c384b2c8d78a0c035c3e434ecb9df6151809fb6b792874bff927623f3adf7d499b61125c0  email-3.1.4.tar.gz"
