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
# Maintainer: Gu1 <[email protected]>
pkgname=python2-swiftclient
pkgver=2.0.3
pkgrel=1
pkgdesc="Client Library for OpenStack Object Storage API"
arch=('any')
url="https://github.com/openstack/python-swiftclient"
license=('Apache 2.0')
depends=('python2' 'python2-requests' 'python2-keystoneclient')
makedepends=('python2-distribute')
options=(!emptydirs)
source=('https://github.com/openstack/python-swiftclient/archive/2.0.3.tar.gz')
sha256sums=('f748aad687fcebb29496282d7c79cd353efb93a3ed7eb86c26c694e0d77b4502')

build() {
  cd "python-swiftclient-$pkgver"
  echo -e "Name: python-swiftclient\nVersion: $pkgver" > PKG-INFO

  sed -e 's|bin/python|bin/python2|' -i bin/swift
}

package() {
  cd "python-swiftclient-$pkgver"
  python2 setup.py install --root="$pkgdir/" --optimize=1
}

# vim:set ts=2 sw=2 et: