aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-django-oscar/APKBUILD
blob: 04ebdc5eb7ad7a458d1cff535f0043490057322a (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
35
36
37
38
39
40
41
42
43
44
45
46
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer:
pkgname=py-django-oscar
pkgver=1.1
pkgrel=4
pkgdesc="Domain-driven e-commerce for Django"
url=http://oscarcommerce.com/
arch=noarch
license=BSD
depends="py-babel py-django py-django-compressor py-django-extra-views
         py-django-haystack py-django-sorl-thumbnail py-django-tables2
         py-django-treebeard py-django-widget-tweaks py-factory-boy py-mock
         py-phonenumbers py-pillow py-purl py-unidecode"
makedepends=py-setuptools
source="https://pypi.python.org/packages/source/d/django-oscar/django-oscar-$pkgver.tar.gz
	fi-django.mo"

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

	cp -v "$srcdir/fi-django.mo" src/oscar/locale/fi/LC_MESSAGES/django.mo
}

build() {
	cd "$_builddir"
	./setup.py build
}

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

md5sums="290bc1708c3ddb61f9ee55be9a90d7c1  django-oscar-1.1.tar.gz
ff0a1a2d4de717c5d273ab3670d77a7d  fi-django.mo"
sha256sums="33b18e7854fde53d5ef2b0f8128974a31ae3049adc3a313002e0674ba1a1c4f1  django-oscar-1.1.tar.gz
cac43ae6e475de7a4fab12df871f4f3d654c4def109aef77c45a654df1f39e1d  fi-django.mo"
sha512sums="73e630389a3beea4a0555bd05f3ee301be79adb6e10e1c84ee105a2c11c683be22791f44468cddcd48b5000f355e345ba6eb7c0d9cabb0c3c4fafb94a02cdf5b  django-oscar-1.1.tar.gz
ed72ed185e1e5da4f9174ded619ca7b39d2ed096b2a49d34967f970545a598a3a4e344095c61f84b7c4ccbbc37988bf8836988897fc98ea70ee9760a1d61796c  fi-django.mo"