# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-flask-gzip
_pkgname=Flask-gzip
pkgver=0.1
pkgrel=0
pkgdesc="Flask gzip support"
url="https://pypi.python.org/pypi/Flask-gzip"
arch="noarch"
license="BSD"
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="019281380d1fd4c4c90b5e6d8fc02549  Flask-gzip-0.1.tar.gz"
sha256sums="8bcd65be14939d3ab6338a7b3bee02da047d64b71e2350429073a267369aaf83  Flask-gzip-0.1.tar.gz"
sha512sums="908ed55b1e75396ea50bcbf5a4466ada8783963611ee549fd9938a87e7028b560068fd7bdee844f7c4412c3c244ae027ea98e2fd9bd7d034aefe253561998cc2  Flask-gzip-0.1.tar.gz"
