blob: a024ff6ab2728ef1ee2567443f6395ca1e1605a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# Maintainer: getzze <getzze at gmail dot com>
pkgname='python-django-cleanup'
pkgver=5.0.0
pkgrel=1
pkgdesc="Automatically deletes old file for FileField and ImageField. It also deletes files on models instance deletion"
arch=(any)
url="https://github.com/un1t/django-cleanup"
license=('MIT')
options=(!emptydirs)
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
sha256sums=('d1038ba64d7bd8cda183b5db22407dc09f3c787e0074e96910777989a759c093')
makedepends=('python-setuptools')
depends=('python-django')
package_python-django-cleanup() {
cd "$srcdir/django-cleanup-$pkgver"
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
python setup.py install --root="$pkgdir/" --optimize=1
}
|