[arch-commits] Commit in (4 files)

Felix Yan fyan at archlinux.org
Fri Feb 26 05:28:38 UTC 2016


    Date: Friday, February 26, 2016 @ 06:28:37
  Author: fyan
Revision: 163461

addpkg: python-positional 1.0.1-1

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

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

Added: python-positional/trunk/PKGBUILD
===================================================================
--- python-positional/trunk/PKGBUILD	                        (rev 0)
+++ python-positional/trunk/PKGBUILD	2016-02-26 05:28:37 UTC (rev 163461)
@@ -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:


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



More information about the arch-commits mailing list