aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-django-sorl-thumbnail/APKBUILD
blob: 5b59508e0b71f622719bd84c57e3c01e494e2e87 (plain) (blame)
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
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=py3-django-sorl-thumbnail
pkgver=12.6.3
pkgrel=1
pkgdesc="Thumbnails for Django"
options="!check" # Requires running django
url="https://github.com/mariocesar/sorl-thumbnail"
arch="noarch"
license="BSD-3-Clause"
depends="py3-django py3-pillow"
makedepends="py3-setuptools py3-setuptools_scm"
source="https://files.pythonhosted.org/packages/source/s/sorl-thumbnail/sorl-thumbnail-$pkgver.tar.gz"

builddir="$srcdir/sorl-thumbnail-$pkgver"

replaces="py-django-sorl-thumbnail" # Backwards compatibility
provides="py-django-sorl-thumbnail=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	cd "$builddir"
	python3 setup.py build
}

package() {
	cd "$builddir"
	python3 setup.py install --root "$pkgdir"
}

sha512sums="88cd28efb4d1452ecbdf747129298ea15b2c51bc33b4cd013e97a67eee8ac7f6539dbdad36e5b6dc947119c1854bdf18cb261db9a4474eebe48855297ae8817a  sorl-thumbnail-12.6.3.tar.gz"