# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer:
pkgname=py-flask-assets
_pkgname=Flask-Assets
pkgver=0.10
pkgrel=1
pkgdesc="Flask asset management"
url="https://pypi.python.org/pypi/Flask-Assets"
arch="noarch"
license="BSD"
depends="python2 py-flask py-webassets"
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="897ae9d0e818ea9f6468ffed46afc173  Flask-Assets-0.10.tar.gz"
sha256sums="d44fbef89d9d2fdc66e216b63c460cdd719b529cf4cdf3e0ef416815879ad1ec  Flask-Assets-0.10.tar.gz"
sha512sums="f62c169683e825088b785689635e5ad5ce22b448936c81f7c1074278a70c0a7e40597722db99208867cf4490f6dffc9e3b0605dbb7a3257da41b1c5ae07bd3ae  Flask-Assets-0.10.tar.gz"
