summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a485af3a10e2e5e85817b8a7d94bc1af4eaf75e (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
38
# Maintainer: Lukas Zimmermann <luk.zim91 at gmail dot com>
# Contributor: Kelsey Maes <kelseymaes at outlook dot com>

_name=azure-storage
pkgname=python-$_name
pkgver=2.1.0
pkgrel=1
pkgdesc="Microsoft Azure Storage Library for Python"
arch=('any')
url="https://github.com/Azure/azure-storage-python"
license=('Apache')
makedepends=('python-setuptools')
source=("https://github.com/Azure/azure-storage-python/archive/v${pkgver}-blob.tar.gz")
sha256sums=('9313542e424bdca748c4e0deb5869bec94bfb4c1d7be6094219fc68435933de9')

_packages=('azure-storage-common' 'azure-storage-blob'
           'azure-storage-file' 'azure-storage-queue')

build() {
  cd "${_name}-python-${pkgver}-blob"

  for package in ${_packages[@]}; do
    cd "${package}"
    python setup.py build
    cd ..
  done
}

package() {
  cd "${_name}-python-${pkgver}-blob"

  for package in ${_packages[@]}; do
    cd "${package}"
    python setup.py install --root="${pkgdir}" --optimize=1
    cd ..
  done
}