diff options
-rw-r--r-- | pcr/nova/PKGBUILD | 70 |
1 files changed, 25 insertions, 45 deletions
diff --git a/pcr/nova/PKGBUILD b/pcr/nova/PKGBUILD index 524d62152..4da77e669 100644 --- a/pcr/nova/PKGBUILD +++ b/pcr/nova/PKGBUILD @@ -1,55 +1,35 @@ -# Contributor (Arch): Josh Chase <jcjoshuachase@gmail.com> -# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> +# Maintainer (Arch) : Limao Luo <luolimao+AUR@gmail.com> +# Contributor (Arch) : Josh Chase <jcjoshuachase@gmail.com> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> pkgname=nova -pkgver=2012.1.2 -_clientname=python-novaclient -_clientver=2.8.0 -pkgrel=1.1 +_relname=icehouse +pkgver=2014.1.b2 +pkgrel=1 pkgdesc="OpenStack cloud computing fabric controller" -arch=('any') -license=('custom') -url="https://launchpad.net/nova" -depends=('python2' - 'python2-cheetah' - 'python2-simplejson' - 'python2-prettytable' - 'python2-amqplib' - 'python2-carrot' - 'python2-lockfile' - 'python2-daemon' - 'python2-gflags' - 'python2-netaddr' - 'glance' - 'python2-suds' - 'python2-paramiko' - 'python2-feedparser' - 'python2-babel' ) -makedepends=('python2-distribute') -source=("https://launchpad.net/nova/essex/2012.1.2/+download/nova-2012.1.2.tar.gz" - "http://pypi.python.org/packages/source/${_clientname:0:1}/$_clientname/$_clientname-$_clientver.tar.gz") +arch=(any) +url=https://launchpad.net/nova +license=(custom) +depends=(glance python2-amqplib python2-babel python2-carrot python2-cheetah python2-daemon + python2-feedparser python2-gflags python2-lockfile python2-novaclient python2-paramiko + python2-suds) +makedepends=(python2-setuptools) +source=($url/$_relname/$_relname-2/+download/$pkgname-$pkgver.tar.gz) -build() { - cd $srcdir - - find . -type f -exec sed -i -e 's|^#!/usr/bin/python$|#!/usr/bin/python2|' \ - -e 's|^#!/usr/bin/env python$|#!/usr/bin/env python2|' {} + - - cd $srcdir/$_clientname-$_clientver - python2 setup.py build +prepare() { + find $pkgname-$pkgver -type f -exec sed -ri 's:^#!/usr/bin/(env )?python$:&2:' '{}' \; +} - cd "$srcdir/$pkgname-$pkgver" - python2 setup.py build +build() { + cd $pkgname-$pkgver/ + python2 setup.py build } package() { - cd $srcdir/$_clientname-$_clientver - python2 setup.py install --root=$pkgdir + cd $pkgname-$pkgver/ + python2 setup.py install --root="$pkgdir" --optimize=1 - cd "$srcdir/$pkgname-$pkgver" - python2 setup.py install --root="$pkgdir" --optimize=1 - - install -dm600 "$pkgdir"/etc/$pkgname - install -Dm600 etc/$pkgname/* "$pkgdir"/etc/$pkgname/ - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + install -d "$pkgdir"/etc/ + cp -r etc/ "$pkgdir"/etc/$pkgname/ + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } |