[arch-commits] Commit in python-cmd2/repos (community-any community-any/PKGBUILD)
Felix Yan
fyan at archlinux.org
Mon Mar 7 14:22:01 UTC 2016
Date: Monday, March 7, 2016 @ 15:22:01
Author: fyan
Revision: 165515
archrelease: copy trunk to community-any
Added:
python-cmd2/repos/community-any/
python-cmd2/repos/community-any/PKGBUILD
(from rev 165514, python-cmd2/trunk/PKGBUILD)
----------+
PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
Copied: python-cmd2/repos/community-any/PKGBUILD (from rev 165514, python-cmd2/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2016-03-07 14:22:01 UTC (rev 165515)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgbase=python-cmd2
+pkgname=(python-cmd2 python2-cmd2)
+pkgver=0.6.8
+_commit=3ed12b6154320d6e3e89c5aace04b7e5ac9bed2c
+pkgrel=1
+pkgdesc="Extra features for standard library's cmd module"
+arch=('any')
+url="https://github.com/python-cmd2/cmd2"
+license=('MIT')
+makedepends=('git' 'python-setuptools' 'python2-setuptools' 'python-pyparsing' 'python2-pyparsing')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("git+https://github.com/python-cmd2/cmd2.git#commit=$_commit")
+md5sums=('SKIP')
+
+prepare() {
+ cp -a cmd2{,-py2}
+}
+
+build() {
+ cd "$srcdir"/cmd2
+ python setup.py build
+
+ cd "$srcdir"/cmd2-py2
+ python2 setup.py build
+}
+
+check() {
+ # Tests will be available in next release
+
+ cd "$srcdir"/cmd2
+ # python setup.py ptr
+
+ cd "$srcdir"/cmd2-py2
+ # python2 setup.py ptr
+}
+
+package_python-cmd2() {
+ depends=('python-pyparsing')
+
+ cd "$srcdir"/cmd2
+ python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-cmd2() {
+ depends=('python2-pyparsing')
+
+ cd "$srcdir"/cmd2-py2
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list