[arch-commits] Commit in python-args/repos (2 files)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Sun Dec 25 16:30:05 UTC 2016
Date: Sunday, December 25, 2016 @ 16:30:05
Author: bpiotrowski
Revision: 201904
archrelease: copy trunk to community-staging-any
Added:
python-args/repos/community-staging-any/
python-args/repos/community-staging-any/PKGBUILD
(from rev 201903, python-args/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: python-args/repos/community-staging-any/PKGBUILD (from rev 201903, python-args/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-25 16:30:05 UTC (rev 201904)
@@ -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=2
+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"
+}
More information about the arch-commits
mailing list