Commit 3779e231 authored by Ariadne Conill's avatar Ariadne Conill

testing/py-flask-mail: upgrade to 0.9.1, add python3 support

parent d899c8b0
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=py-flask-mail
pkgver=0.9.0
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="python2 py-flask py-blinker"
depends="py-flask py-blinker"
depends_dev=""
makedepends="python2-dev py-setuptools"
makedepends="python2-dev python3-dev py-setuptools"
install=""
subpackages=""
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
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
builddir="$srcdir"/Flask-Mail-$pkgver
build() {
cd "$_builddir"
python2 setup.py build || return 1
python2 setup.py build
python3 setup.py build
}
package() {
cd "$_builddir"
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
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
}
md5sums="cd71f0b228341fc29d2722783ebaa8f6 Flask-Mail-0.9.0.tar.gz"
sha256sums="db9669d1eac783e73f06406f36bb5f71eae99b6c24e5849d76934641e3f6263e Flask-Mail-0.9.0.tar.gz"
sha512sums="273f21f36b46c8c86c34d5377764a684cfb53501201d5ec4d17f6ce59de1ce0654904790d3ca03a0947106d1384de65faf73d917892c386d00cebbe7aae4bc66 Flask-Mail-0.9.0.tar.gz"
sha512sums="1d19f0bade77c66e73624d8af0919165f8b6f208a00c1e4025049b50ad56912557b8446cb80f8567adf697e92b126954a5f130bd9fa7a2345d4e98e35b29ac47 Flask-Mail-0.9.1.tar.gz"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment