aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-flask-mail/APKBUILD
blob: d51a3cd440c1112aa2a28a181929f8ee8ff85c71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: 
# Maintainer: 
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"