blob: d7fcd15b06c629f7887bd54d6b2136cb8991e205 (
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
|
# Maintainer: Kevin Azzam <aur@azz.am>
# Contributor: David McInnis <davidm@eagles.ewu.edu>
pkgname='python-django-storages'
_module='django-storages'
pkgver='1.14.2'
pkgrel=1
pkgdesc="Support for many storage backends (S3, Libcloud, etc) in Django."
url="https://github.com/jschneier/django-storages"
makedepends=('python-setuptools')
license=('BSD')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/d/django-storages/django-storages-${pkgver}.tar.gz")
sha256sums=('51b36af28cc5813b98d5f3dfe7459af638d84428c8df4a03990c7d74d1bea4e5')
build() {
cd "${srcdir}/${_module}-${pkgver}"
python setup.py build
}
package() {
depends=('python-django')
optdepends=(
'python-azure-storage-blob'
'python-boto3'
'python-dropbox'
'python-google-cloud-storage'
'python-apache-libcloud'
'python-paramiko'
)
cd "${srcdir}/${_module}-${pkgver}"
python setup.py install --root="${pkgdir}/" --optimize=1
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm 644 CHANGELOG.rst -t "${pkgdir}/usr/share/doc/${pkgname}/CHANGES"
}
|