summaryrefslogtreecommitdiff
path: root/pcr/python2-glanceclient/PKGBUILD
diff options
context:
space:
mode:
authoraurelien <aurelien@xload.io>2014-06-01 00:06:01 +0200
committeraurelien <aurelien@xload.io>2014-06-01 00:06:01 +0200
commit73869cdcec4bc2e8ca910775b31900bbb345a9e7 (patch)
treeacd428ccda5a60fee1315b7cea3932f71dcd1efb /pcr/python2-glanceclient/PKGBUILD
parent7eaa23987dffa7ef5d55910f01158ad829603040 (diff)
downloadabslibre-73869cdcec4bc2e8ca910775b31900bbb345a9e7.tar.gz
abslibre-73869cdcec4bc2e8ca910775b31900bbb345a9e7.tar.bz2
abslibre-73869cdcec4bc2e8ca910775b31900bbb345a9e7.zip
python2-glanceclient
Diffstat (limited to 'pcr/python2-glanceclient/PKGBUILD')
-rw-r--r--pcr/python2-glanceclient/PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/pcr/python2-glanceclient/PKGBUILD b/pcr/python2-glanceclient/PKGBUILD
new file mode 100644
index 000000000..391e98caa
--- /dev/null
+++ b/pcr/python2-glanceclient/PKGBUILD
@@ -0,0 +1,30 @@
+# Contributor: Limao Luo <luolimao+AUR@gmail.com>
+# Maintainer : Parabola GNU / Linux-libre Aurélien DESBRIÈRES <aurelien@hackers.camp>
+
+pkgname=python2-glanceclient
+pkgver=0.12.0
+pkgrel=1
+pkgdesc="OpenStack image service (client libs)"
+arch=(any)
+url=https://launchpad.net/glance
+license=(custom)
+depends=(python2-anyjson python2-crypto python2-eventlet python2-greenlet python2-httplib2
+ python2-iso8601 python2-kombu python2-lxml python2-migrate python2-netaddr python2-passlib
+ python2-paste python2-paste-deploy python2-routes python2-sendfile python2-sqlalchemy
+ python2-webob python2-wsgiref python2-xattr python2-pbr python2-pip)
+makedepends=(python2-setuptools)
+source=(https://pypi.python.org/packages/source/${pkgname:0:1}/${pkgname//2}/${pkgname//2}-$pkgver.tar.gz)
+
+prepare() {
+ find ${pkgname//2}-$pkgver -type f -exec sed -ri 's:^#!/usr/bin/(env )?python$:&2:' '{}' \;
+}
+
+build() {
+ cd ${pkgname//2}-$pkgver/
+ python2 setup.py build
+}
+
+package() {
+ cd ${pkgname//2}-$pkgver/
+ python2 setup.py install --root="$pkgdir"
+}