# 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" }