[arch-commits] Commit in python2-unittest2/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Sat Nov 10 00:27:24 UTC 2018


    Date: Saturday, November 10, 2018 @ 00:27:23
  Author: foutrelis
Revision: 405528

archrelease: copy trunk to community-staging-any

Added:
  python2-unittest2/repos/community-staging-any/
  python2-unittest2/repos/community-staging-any/LICENSE
    (from rev 405527, python2-unittest2/trunk/LICENSE)
  python2-unittest2/repos/community-staging-any/PKGBUILD
    (from rev 405527, python2-unittest2/trunk/PKGBUILD)

----------+
 LICENSE  |   32 ++++++++++++++++++++++++++++++++
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)

Copied: python2-unittest2/repos/community-staging-any/LICENSE (from rev 405527, python2-unittest2/trunk/LICENSE)
===================================================================
--- community-staging-any/LICENSE	                        (rev 0)
+++ community-staging-any/LICENSE	2018-11-10 00:27:23 UTC (rev 405528)
@@ -0,0 +1,32 @@
+Copyright (c) 2003-2010, Michael Foord
+All rights reserved.
+E-mail : fuzzyman AT voidspace DOT org DOT uk
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+
+    * Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+
+    * Redistributions in binary form must reproduce the above
+      copyright notice, this list of conditions and the following
+      disclaimer in the documentation and/or other materials provided
+      with the distribution.
+
+    * Neither the name of Michael Foord nor the name of Voidspace
+      may be used to endorse or promote products derived from this
+      software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Copied: python2-unittest2/repos/community-staging-any/PKGBUILD (from rev 405527, python2-unittest2/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-11-10 00:27:23 UTC (rev 405528)
@@ -0,0 +1,35 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Carl George < arch at cgtx dot us >
+
+pkgname=python2-unittest2
+_pkgname=unittest2
+pkgver=1.1.0
+pkgrel=5
+pkgdesc="New features in unittest for Python 2"
+url="http://www.voidspace.org.uk/python/articles/unittest2.shtml"
+arch=('any')
+license=('BSD')
+depends=('python2-six' 'python2-traceback2')
+makedepends=('python2-distribute')
+source=(${pkgname}-${pkgver}.tar.gz::https://hg.python.org/unittest2/archive/${pkgver}.tar.gz
+        LICENSE)
+sha512sums=('ccd701194994623422d5c0bdd88d89b279cbbc67cd96b3cfee7f48e1c32f87c154a3378771e2909afa89d9c13692173ccbd692312b1ad7b9d05cf8c115fcc14b'
+            '85242ed21eb191fa0bab16f3e390957f1c8b7bc3b79aefbea2d925feaa8248f33d6e22afaa7d1c07c5fcb5e800910aa2a1cb52d892c104337bbdb57a380373a2')
+
+prepare() {
+  sed -i "s/'argparse', //" ${_pkgname}-${pkgver}/setup.py
+}
+
+build() {
+  cd ${_pkgname}-${pkgver}
+  python2 setup.py build
+}
+
+package() {
+  cd ${_pkgname}-${pkgver}
+  python2 setup.py install --skip-build -O1 --root="${pkgdir}"
+  install -Dm 644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm 644 README.txt "${pkgdir}/usr/share/doc/${pkgname}/README"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list