[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Wed Jun 29 03:00:52 UTC 2016


    Date: Wednesday, June 29, 2016 @ 03:00:51
  Author: felixonmars
Revision: 181578

addpkg: python-pifpaf 0.6.0-1

Added:
  python-pifpaf/
  python-pifpaf/repos/
  python-pifpaf/trunk/
  python-pifpaf/trunk/PKGBUILD

----------+
 PKGBUILD |   60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

Added: python-pifpaf/trunk/PKGBUILD
===================================================================
--- python-pifpaf/trunk/PKGBUILD	                        (rev 0)
+++ python-pifpaf/trunk/PKGBUILD	2016-06-29 03:00:51 UTC (rev 181578)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pifpaf
+pkgname=('python-pifpaf' 'python2-pifpaf')
+pkgver=0.6.0
+pkgrel=1
+pkgdesc='Suite of tools and fixtures to manage daemons for testing'
+arch=('any')
+license=('Apache')
+url='https://github.com/jd/pifpaf'
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-cliff'
+             'python2-cliff' 'python-stevedore' 'python2-stevedore' 'python-six' 'python2-six'
+             'python-fixtures' 'python2-fixtures' 'python-xattr' 'python2-xattr' 'git')
+checkdepends=('python-testrepository' 'python2-testrepository' 'python-requests' 'python2-requests'
+              'python-testtools' 'python2-testtools' 'python-oslotest' 'python2-oslotest')
+source=("git+https://github.com/jd/pifpaf.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a pifpaf{,-py2}
+
+  export LC_CTYPE=en_US.UTF-8
+}
+
+build() {
+  cd "$srcdir"/pifpaf
+  python setup.py build
+
+  cd "$srcdir"/pifpaf-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/pifpaf
+  python setup.py testr
+
+  cd "$srcdir"/pifpaf-py2
+  PYTHON=python2 python2 setup.py testr
+}
+
+package_python-pifpaf() {
+  depends=('python-pbr' 'python-cliff' 'python-stevedore' 'python-six' 'python-fixtures'
+           'python-xattr')
+
+  cd "$srcdir"/pifpaf
+  python setup.py install --root="$pkgdir"/ --optimize=1
+}
+
+package_python2-pifpaf() {
+  depends=('python2-pbr' 'python2-cliff' 'python2-stevedore' 'python2-six' 'python2-fixtures'
+           'python2-xattr')
+
+  cd "$srcdir"/pifpaf-py2
+  python2 setup.py install --root="$pkgdir"/ --optimize=1
+
+  mv "$pkgdir"/usr/bin/pifpaf{,2}
+}
+
+# vim:set ts=2 sw=2 et:


Property changes on: python-pifpaf/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list