[arch-commits] Commit in python-positional/repos (2 files)

Felix Yan fyan at archlinux.org
Fri Feb 26 05:29:00 UTC 2016


    Date: Friday, February 26, 2016 @ 06:29:00
  Author: fyan
Revision: 163462

archrelease: copy trunk to community-any

Added:
  python-positional/repos/community-any/
  python-positional/repos/community-any/PKGBUILD
    (from rev 163461, python-positional/trunk/PKGBUILD)

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

Copied: python-positional/repos/community-any/PKGBUILD (from rev 163461, python-positional/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2016-02-26 05:29:00 UTC (rev 163462)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgbase=python-positional
+pkgname=(python-positional python2-positional)
+pkgver=1.0.1
+pkgrel=1
+pkgdesc="Library to enforce positional or key-word arguments"
+arch=('any')
+url="https://github.com/morganfainberg/positional"
+license=('Apache')
+makedepends=('git' 'python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr')
+checkdepends=('python-testrepository' 'python2-testrepository')
+source=("git+https://github.com/morganfainberg/positional.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a positional{,-py2}
+}
+
+build() {
+  cd "$srcdir"/positional
+  python setup.py build
+
+  cd "$srcdir"/positional-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/positional
+  python setup.py testr
+
+  cd "$srcdir"/positional-py2
+  python2 setup.py testr
+}
+
+package_python-positional() {
+  depends=('python-pbr')
+
+  cd "$srcdir"/positional
+  python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-positional() {
+  depends=('python2-pbr')
+
+  cd "$srcdir"/positional-py2
+  python2 setup.py install --root="$pkgdir/" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list