# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
setvar pkgname = 'py-flask-cdn'
setvar _pkgname = 'Flask-CDN'
setvar pkgver = '1.5.0'
setvar pkgrel = '0'
setvar pkgdesc = ""Flask CDN static files extension""
setvar url = ""https://pypi.python.org/pypi/Flask-CDN""
setvar arch = ""noarch""
setvar license = ""MIT""
setvar depends = ""python2 py-flask""
setvar depends_dev = """"
setvar makedepends = ""python2-dev py-setuptools""
setvar install = """"
setvar subpackages = """"
setvar source = ""https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz""

setvar _builddir = ""$srcdir"/$_pkgname-$pkgver"
proc prepare {
	local i
	cd $_builddir
	for i in $source {
		case (i) {
		*.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1}
		}
	}
}

proc build {
	cd $_builddir
	python2 setup.py build || return 1
}

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

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