[arch-commits] Commit in (4 files)

Felix Yan fyan at archlinux.org
Mon Oct 26 01:37:29 UTC 2015


    Date: Monday, October 26, 2015 @ 02:37:29
  Author: fyan
Revision: 144987

addpkg: python-args 0.1.0.20121116-1

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

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

Added: python-args/trunk/PKGBUILD
===================================================================
--- python-args/trunk/PKGBUILD	                        (rev 0)
+++ python-args/trunk/PKGBUILD	2015-10-26 01:37:29 UTC (rev 144987)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-args
+pkgname=('python-args' 'python2-args')
+pkgver=0.1.0.20121116
+_commit=36c727bea812945023968a5bd7b0bdece9ca8666
+pkgrel=1
+pkgdesc="Command Arguments for Humans"
+arch=('any')
+license=('BSD')
+url="https://github.com/kennethreitz/args"
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-nose' 'python2-nose')
+source=("git+https://github.com/kennethreitz/args.git#commit=$_commit")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a args{,-py2}
+}
+
+build() {
+  cd "$srcdir/args"
+  python setup.py build
+
+  cd "$srcdir/args-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/args"
+  nosetests3
+
+  cd "$srcdir/args-py2"
+  nosetests2
+}
+
+package_python-args() {
+  depends=('python')
+
+  cd args
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-args() {
+  depends=('python2')
+
+  cd args-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}


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



More information about the arch-commits mailing list