# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-flask-peewee
_pkgname=flask-peewee
pkgver=0.6.5
pkgrel=0
pkgdesc="Flask integration for peewee"
url="http://pypi.python.org/pypi/flask-peewee"
arch="noarch"
license="MIT"
depends="python2 py-flask py-peewee"
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="6f3af829967026c0e20b5e34dbde2426  flask-peewee-0.6.5.tar.gz"
sha256sums="7b39fac44b86e057a44fc059193e444cefbf3aa7807ba3022fa090ac50ce89c2  flask-peewee-0.6.5.tar.gz"
sha512sums="4e1f01d78d1c778cd95a784920d8cfbddc712b8224d93cd0dfe566ee007b781dc4b353bb27c4240475234660363b2b77093d504bf5ef90f358e116f8373020d5  flask-peewee-0.6.5.tar.gz"
