aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-django-sorl-thumbnail/APKBUILD
blob: d316ffea5df388cb7301002ffbdc7b7e0287dda7 (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
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=py-django-sorl-thumbnail
pkgver=12.4.1
pkgrel=0
pkgdesc="Thumbnails for Django"
url=https://github.com/mariocesar/sorl-thumbnail
arch=noarch
license=BSD
depends="py-django py-pillow"
makedepends=py-setuptools
source="https://files.pythonhosted.org/packages/source/s/sorl-thumbnail/sorl-thumbnail-$pkgver.tar.gz"

_builddir=$srcdir/sorl-thumbnail-$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="095dcbf83a0fbe4438dab55ebc81473493f6e4631753c1ea9d6900009c31bb6bca1be7fc62533475fc8102c559b859d7a0fcbb8ef0ea8b06a6a4bd5e9750e234  sorl-thumbnail-12.4.1.tar.gz"