# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=py-django-haystack
pkgver=2.5.0
pkgrel=0
pkgdesc="Modular search for Django"
url=http://haystacksearch.org/
arch=noarch
license=BSD
depends=py-django
makedepends=py-setuptools
source="https://files.pythonhosted.org/packages/source/d/django-haystack/django-haystack-$pkgver.tar.gz"

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

md5sums="46f14482af7f32ea85a4aaec60f4676f  django-haystack-2.5.0.tar.gz"
sha256sums="54f6aa03770aa11de30b7052cdbdfdb102f8d5be4342033a89e538b4bdc86d9b  django-haystack-2.5.0.tar.gz"
sha512sums="36748a6246df72edb296bc3299ad9e6c2221ff3eb1e270eeaf84dd291783bc37e004e659c6dcd3669e3ac2208a06ae57ddfbc429dcff74d0abf0dc196e4e4dbb  django-haystack-2.5.0.tar.gz"
