summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cda8aa424b8d7bdcc46aa3d7a1efc4945c9ab2f3 (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
39
40
41
42
# Maintainer: Kelsey Maes <kelseymaes at outlook dot com>

_name=azure-storage
pkgname=python2-$_name
pkgver=1.1.0
pkgrel=2
pkgdesc="Microsoft Azure Storage Library for Python"
arch=('any')
url="https://github.com/Azure/azure-storage-python"
license=('Apache')
makedepends=('python2-setuptools')
source=("https://github.com/Azure/azure-storage-python/archive/v${pkgver}-common.tar.gz"
        "setup.patch")
md5sums=('4e7833d17443e6552a2e0b2d9f1e5657'
         '3529e82ae379ecaa14a938fda53275a1')

_packages=('azure-storage-common' 'azure-storage-blob'
           'azure-storage-file' 'azure-storage-queue')
build() {
  cd "$_name-python-${pkgver}-common"
  patch -p1 < ../setup.patch

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

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

  for package in ${_packages[@]}
  do
    cd $package
    python2 setup.py install --root="$pkgdir" --optimize=1
    cd ..
  done
    
  rm "$pkgdir"/usr/lib/python2.?/site-packages/azure/__init__.*
}