# 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="python2 py-flask"
depends_dev=""
makedepends="python2-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"
	python2 setup.py build || return 1
}

package() {
	cd "$_builddir"
	python2 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"
