summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 86f20ef6c092dd4d181a1ae1213e12b047220c99 (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
# Maintainer: Kevin Azzam <aur@azz.am>

_pipname=django-storage-swift
pkgbase=python-django-storage-swift
pkgname=('python-django-storage-swift')
pkgver=1.2.19
pkgrel=3
pkgdesc="OpenStack Swift storage backend for Django"
arch=('any')
url="https://github.com/dennisv/django-storage-swift/"
license=('MIT')
makedepends=('python-setuptools' 'python-django')
source=("https://files.pythonhosted.org/packages/source/d/django-storage-swift/django-storage-swift-${pkgver}.tar.gz")
sha256sums=('db3e2c231d927d17e1c25a4c2c3dda9aa82d001eaf6364d2b7447306cfc03e01')


build() {
    cd "${srcdir}/${_pipname}-${pkgver}"
    python setup.py build
}

package() {
    depends=('python-django' 'python-swiftclient' 'python-magic')

    cd "${srcdir}/${_pipname}-${pkgver}"
    python setup.py install --root="$pkgdir/" --optimize=1

    # install -m644 "LICENSE.txt" "$pkgdir"/usr/share/licenses/$pkgname
}