summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorErhan SAHIN2015-06-11 23:36:40 +0300
committerErhan SAHIN2015-06-11 23:36:40 +0300
commitf86319da81ca636b6048fac82e6083add804c9c6 (patch)
tree067a94064f91a1d7c0c32b61695ed9c5c6d58afd /PKGBUILD
downloadaur-python2-swiftclient-kilo.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
1 files changed, 24 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..31652ceb6a4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Erhan SAHIN <erhan@ssahin.net>
+
+pkgname=python2-swiftclient-kilo
+pkgver=2.4.0
+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')
+source=('https://github.com/openstack/python-swiftclient/archive/2.4.0.tar.gz')
+md5sums=('d4b22f61461faf730e32cccf290a281a')
+
+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
+}