# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-flask-cdn
_pkgname=Flask-CDN
pkgver=1.5.0
pkgrel=0
pkgdesc="Flask CDN static files extension"
url="https://pypi.python.org/pypi/Flask-CDN"
arch="noarch"
license="MIT"
depends="python2 py-flask"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.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"
	python2 setup.py build || return 1
}

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

md5sums="fc7fe7ad131955d553f5aa19b4a469c4  Flask-CDN-1.5.0.tar.gz"
sha256sums="3957b5c939cabc0274f391450f01f3f08a40a6bb8aaa7f42cea0f176390f97fa  Flask-CDN-1.5.0.tar.gz"
sha512sums="d49aa02fdef2dea916817400a838a5d3e76d4635df30f9e194ceb68e902773668e96ff5a1f2594939e3d02d3b8eecf8f64fe7bbd16ee042ab0448a887b62509e  Flask-CDN-1.5.0.tar.gz"
