aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-tornado/APKBUILD
blob: e60f7165aec5ed830d8004fb71e7b4c43abe701a (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
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer:
pkgname=py-tornado
_pkgname=tornado
pkgver=4.0.2
pkgrel=0
pkgdesc="Python web framework and asynchronous networking library"
url="http://www.tornadoweb.org/"
arch="noarch"
license="ASL 2.0"
depends="python py-backports.ssl_match_hostname py-certifi"
depends_dev="py-setuptools"
makedepends="$depends_dev"
install=""
subpackages=""
source="https://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-${pkgver}.tar.gz"

_builddir="$srcdir"/$_pkgname-$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
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 || return 1
}

md5sums="985c0e704b765c33a6193d49d1935588  tornado-4.0.2.tar.gz"
sha256sums="900c5124ebdb6598ca8e8a0c5888f41a5f14117952d5515258e3d20222b21bfa  tornado-4.0.2.tar.gz"
sha512sums="93591068dc63af8d50a7925d528bc0cccdd705232c529b6162619fe28dddaf115e8a460b1842877d35160bd7ed480c1bd0bdbec57d1f359085bd1814e0c1c242  tornado-4.0.2.tar.gz"