# Contributor: Kaarle Ritvanen # Maintainer: Kaarle Ritvanen pkgname=py-django-sorl-thumbnail pkgver=12.4a1 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" python setup.py build } package() { cd "$_builddir" python setup.py install --root "$pkgdir" } md5sums="9d67047d266d3b48fb3766e65085ecb0 sorl-thumbnail-12.4a1.tar.gz" sha256sums="cfa75ecafac90e18e48b8413e980cd50daa726cbda0d4b77eb47912cbeac884d sorl-thumbnail-12.4a1.tar.gz" sha512sums="ded8876dc52a6bfeae021431860ade32751f70270dc7db4aca0c7e3cf8bcb0a71602c8a9125f3d2058ec7910e73cbcab5bb0b6259302069e6a085b8854e04d23 sorl-thumbnail-12.4a1.tar.gz"