aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-django-oscar/APKBUILD
blob: 0565c208d916f03bcaac3381d1b1105764a1369d (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: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=py-django-oscar
pkgver=1.1.1
pkgrel=0
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="6e4137e1dda326b2ccf410eee5530c71  django-oscar-1.1.1.tar.gz
ff0a1a2d4de717c5d273ab3670d77a7d  fi-django.mo"
sha256sums="61771da93e10f3a51c80ce54e2736202e60a58ada50317d7fa110f5d1410cdf5  django-oscar-1.1.1.tar.gz
cac43ae6e475de7a4fab12df871f4f3d654c4def109aef77c45a654df1f39e1d  fi-django.mo"
sha512sums="4f94021b169970585f1407aa90538053cbcfc78c3946dc7a107c91cc2970ac3ddbbd4eaf34327748fbc62e5e7c52d311a62c2fd80e4e760ab654b4b075eec215  django-oscar-1.1.1.tar.gz
ed72ed185e1e5da4f9174ded619ca7b39d2ed096b2a49d34967f970545a598a3a4e344095c61f84b7c4ccbbc37988bf8836988897fc98ea70ee9760a1d61796c  fi-django.mo"