From 73869cdcec4bc2e8ca910775b31900bbb345a9e7 Mon Sep 17 00:00:00 2001 From: aurelien Date: Sun, 1 Jun 2014 00:06:01 +0200 Subject: python2-glanceclient --- pcr/python2-glanceclient/PKGBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pcr/python2-glanceclient/PKGBUILD (limited to 'pcr/python2-glanceclient') 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 +# Maintainer : Parabola GNU / Linux-libre Aurélien DESBRIÈRES + +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" +} -- cgit v1.2.3-2-g168b