[arch-commits] Commit in python-decorator/repos (3 files)

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 20:22:24 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:22:24
  Author: felixonmars
Revision: 1058136

archrelease: copy trunk to community-staging-any

Added:
  python-decorator/repos/community-staging-any/
  python-decorator/repos/community-staging-any/LICENSE.txt
    (from rev 1058132, python-decorator/trunk/LICENSE.txt)
  python-decorator/repos/community-staging-any/PKGBUILD
    (from rev 1058132, python-decorator/trunk/PKGBUILD)

-------------+
 LICENSE.txt |   26 ++++++++++++++++++++++++++
 PKGBUILD    |   38 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)

Copied: python-decorator/repos/community-staging-any/LICENSE.txt (from rev 1058132, python-decorator/trunk/LICENSE.txt)
===================================================================
--- community-staging-any/LICENSE.txt	                        (rev 0)
+++ community-staging-any/LICENSE.txt	2021-11-30 20:22:24 UTC (rev 1058136)
@@ -0,0 +1,26 @@
+Copyright (c) 2007, Michele Simionato
+All rights reserved.
+
+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 bytecode 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. 
+
+  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
+  HOLDERS 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: python-decorator/repos/community-staging-any/PKGBUILD (from rev 1058132, python-decorator/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 20:22:24 UTC (rev 1058136)
@@ -0,0 +1,38 @@
+# Maintainer: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Pierre Chapuis <catwell at archlinux dot us>
+
+_name=decorator
+pkgname=python-decorator
+pkgver=5.1.0
+pkgrel=2
+pkgdesc='Python Decorator module'
+arch=('any')
+url='https://pypi.python.org/pypi/decorator'
+license=('BSD')
+depends=('python')
+makedepends=('python' 'python-setuptools')
+source=("https://pypi.python.org/packages/source/${_name:0:1}/${_name}/${_name}-${pkgver}.tar.gz"
+        'LICENSE.txt')
+sha512sums=('4acc0967af79f61c56adea3084c4e9f9de1c34fcbc7906db4bb1b0759e07ffed6eff0e4b21645dda5f37e96662742621f3d043e8c06a401841c7199a915afe18'
+            '0a06dfb3f470b8d3b056bd4e4776df715876d04d0acc86dec536fa7cff0214ba5255833923558d1778db730d080960f31d5e12f939e761530823b6e70646b5c2')
+
+build() {
+  cd "$srcdir/$_name-$pkgver"
+
+  python3 setup.py build
+}
+
+package() {
+  cd "${srcdir}/${_name}-${pkgver}"
+
+  python3 setup.py install --root="${pkgdir}" --optimize=1
+
+  install -D -m644 "${srcdir}/LICENSE.txt" \
+    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+check() {
+  cd "$srcdir/${_name}-$pkgver"
+
+  python3 setup.py test
+}



More information about the arch-commits mailing list