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

Andrzej Giniewicz aginiewicz at archlinux.org
Sun Feb 8 11:33:02 UTC 2015


    Date: Sunday, February 8, 2015 @ 12:33:01
  Author: aginiewicz
Revision: 127296

archrelease: copy trunk to community-any

Added:
  python2-singledispatch/repos/community-any/
  python2-singledispatch/repos/community-any/PKGBUILD
    (from rev 127295, python2-singledispatch/trunk/PKGBUILD)
  python2-singledispatch/repos/community-any/license
    (from rev 127295, python2-singledispatch/trunk/license)

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 license  |   19 +++++++++++++++++++
 2 files changed, 56 insertions(+)

Copied: python2-singledispatch/repos/community-any/PKGBUILD (from rev 127295, python2-singledispatch/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2015-02-08 11:33:01 UTC (rev 127296)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+
+pkgname=python2-singledispatch
+pkgver=3.4.0.3
+pkgrel=1
+pkgdesc="Implementation of functools.singledispatch from Python 3.4"
+arch=('any')
+url="https://bitbucket.org/ambv/singledispatch"
+license=('MIT')
+depends=('python2')
+makedepends=('python2-setuptools')
+source=("https://pypi.python.org/packages/source/s/singledispatch/singledispatch-$pkgver.tar.gz" license)
+md5sums=('af2fc6a3d6cc5a02d0bf54d909785fcb'
+         '360faaffcf297a20e20e2289af00ce07')
+
+prepare() {
+  cd "${srcdir}"/singledispatch-$pkgver
+
+  sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+    $(find "${srcdir}" -name '*.py')
+}
+
+build() {
+  cd "${srcdir}"/singledispatch-$pkgver
+
+  python2 setup.py build
+}
+
+package() {
+  cd "${srcdir}"/singledispatch-$pkgver
+
+  python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
+
+  install -D "${srcdir}"/license "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+

Copied: python2-singledispatch/repos/community-any/license (from rev 127295, python2-singledispatch/trunk/license)
===================================================================
--- community-any/license	                        (rev 0)
+++ community-any/license	2015-02-08 11:33:01 UTC (rev 127296)
@@ -0,0 +1,19 @@
+Copyright (c) 2013 Łukasz Langa
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.



More information about the arch-commits mailing list