aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-flask-sslify/APKBUILD
blob: 43d5cbdb87991d33ae0a2f1a482a348a2f3a4e32 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=py-flask-sslify
pkgver=0.1.5
pkgrel=0
pkgdesc="Flask plugin for forcing SSL on your web apps by default"
url="http://pypi.python.org/pypi/Flask-SSLify"
arch="noarch"
license="BSD"
depends="python py-flask"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/F/Flask-SSLify/Flask-SSLify-$pkgver.tar.gz"

_builddir="$srcdir"/Flask-SSLify-$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" || return 1
}

md5sums="1282f5af7d621a32130296ad8dd6a70c  Flask-SSLify-0.1.5.tar.gz"
sha256sums="d33e1d3c09cd95154176aa8a7319418e52129fc482dd56d8a8ad7c24500d543e  Flask-SSLify-0.1.5.tar.gz"
sha512sums="222b7cd05e0f262f762f2115ea1ea7c844b46c69a7e69e4cb53ce20ce42a9b965085e30d13e2ef495e54ee8155583a7756acfb8c898718e16d9f6b70af93b270  Flask-SSLify-0.1.5.tar.gz"