# Contributor: William Pitcock <nenolod@dereferenced.org> # Maintainer: William Pitcock <nenolod@dereferenced.org> pkgname=py-flask-mail pkgver=0.9.1 pkgrel=0 pkgdesc="SMTP mail client for the Flask microframework" url="http://pypi.python.org/pypi/Flask-Mail" arch="noarch" license="BSD" depends="py-flask py-blinker" depends_dev="" makedepends="python2-dev python3-dev py-setuptools" install="" subpackages="py2-flask-mail:py2 py3-flask-mail:py3" source="https://files.pythonhosted.org/packages/source/F/Flask-Mail/Flask-Mail-$pkgver.tar.gz" builddir="$srcdir"/Flask-Mail-$pkgver build() { cd "$_builddir" python2 setup.py build python3 setup.py build } package() { mkdir -p "$pkgdir" } _py() { local python="$1" pkgdesc="$pkgdesc ${python#python}" depends="$depends $python" install_if="$pkgname=$pkgver-r$pkgrel $python" cd "$builddir" $python setup.py install --prefix=/usr --root="$subpkgdir" } py2() { cd "$builddir" _py python2 } py3() { cd "$builddir" _py python3 } sha512sums="1d19f0bade77c66e73624d8af0919165f8b6f208a00c1e4025049b50ad56912557b8446cb80f8567adf697e92b126954a5f130bd9fa7a2345d4e98e35b29ac47 Flask-Mail-0.9.1.tar.gz"