[arch-commits] Commit in python-d2to1/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Sep 19 16:14:14 UTC 2015
Date: Saturday, September 19, 2015 @ 18:14:14
Author: foutrelis
Revision: 140912
archrelease: copy trunk to community-staging-any
Added:
python-d2to1/repos/community-staging-any/
python-d2to1/repos/community-staging-any/PKGBUILD
(from rev 140911, python-d2to1/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: python-d2to1/repos/community-staging-any/PKGBUILD (from rev 140911, python-d2to1/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 16:14:14 UTC (rev 140912)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Limao Luo <luolimao+AUR at gmail.com>
+pkgbase=python-d2to1
+pkgname=(python-d2to1 python2-d2to1)
+pkgver=0.2.11
+pkgrel=3
+pkgdesc="Python bindings to the OpenStack Identity API (Keystone)"
+arch=(any)
+url=https://pypi.python.org/pypi/d2to1
+license=(BSD)
+makedepends=(python2-setuptools python-setuptools)
+source=(http://pypi.python.org/packages/source/d/${pkgname#*-}/${pkgname#*-}-$pkgver.tar.gz)
+sha256sums=('64097a1b9270458898a0047034e9ba422a6456f51771105f33edb6b38e19bfa8')
+sha512sums=('46a8b8b154b77bbef7bfeeeba1d6752899fad1b4cac8a6df699d42c848dcccc51e16db6429d171efd829fd051215f58fd9a5ec2edb62a06cf75f00ec5faac4da')
+
+prepare(){
+ cp -a ${pkgbase#*-}-$pkgver/ ${pkgbase}2-$pkgver
+ find ${pkgbase}2-$pkgver -name \*.py -exec sed -i '1s/python$/&2/' {} +
+}
+
+build() {
+ cd $srcdir/${pkgbase#*-}-$pkgver
+ python setup.py build
+ cd $srcdir/${pkgbase}2-$pkgver
+ python2 setup.py build
+}
+
+package_python-d2to1() {
+ cd ${pkgbase#*-}-$pkgver/
+ depends=(python)
+ python setup.py install --prefix=/usr --root="$pkgdir"
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+package_python2-d2to1() {
+ cd ${pkgbase}2-$pkgver/
+ depends=(python2)
+ python2 setup.py install --prefix=/usr --root="$pkgdir"
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list