aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-django-haystack/APKBUILD
blob: 89ae5fad7450c13d134350e32034c08c98f51213 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=py-django-haystack
pkgver=2.8.1
pkgrel=1
pkgdesc="Modular search for Django"
url=http://haystacksearch.org/
arch=noarch
license=BSD
depends="py-django 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"
}

sha512sums="019defd304334657f5a4ef849fedcf2915800c816f4ff7a53d68a61f5506fc4b94dc43fffda2a4d4ce105a55ac37076e73edcc1ae4acd1c85240320e0af2f069  django-haystack-2.8.1.tar.gz"