# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=py-django-appconf
pkgver=1.0.2
pkgrel=0
pkgdesc="Packaged application configuation helper for Django"
url=http://django-appconf.readthedocs.org/
arch=noarch
license=BSD
depends="py-django py-six"
makedepends=py-setuptools
source="https://files.pythonhosted.org/packages/source/d/django-appconf/django-appconf-$pkgver.tar.gz"

_builddir=$srcdir/django-appconf-$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
}

package() {
	cd "$_builddir"
	python2 setup.py install --root "$pkgdir"
}

sha512sums="07c823831385b6705b9ed5fd45f6cf28242919f26cc32feef140d0045bf2951f971573eea126ac1eb9e29c9aa8b5ebebabcd92ee22c549cced54dbd228c242a3  django-appconf-1.0.2.tar.gz"