# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-flask-menubuilder
_pkgname=Flask-MenuBuilder
pkgver=0.9.2
pkgrel=0
pkgdesc="Flask MenuBuilder extension"
url="https://pypi.python.org/pypi/Flask-MenuBuilder"
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="b950f33b38d503379ae866647cd83aa9  Flask-MenuBuilder-0.9.2.tar.gz"
sha256sums="d64a54c26b005896f7bba155c2ae2f13a238b4369a4d724d962b9ccedfd279c5  Flask-MenuBuilder-0.9.2.tar.gz"
sha512sums="689f24aed3254be60a1e450d3815916a71fad87165c246484dffad6af2d45a4f479f9d85bc45861aaddd1c9b2fdebc4f83b2a3e8157dc69893cdfe507335ddb5  Flask-MenuBuilder-0.9.2.tar.gz"
