[arch-commits] Commit in python2-singledispatch/repos (3 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 7 17:33:42 UTC 2020
Date: Tuesday, July 7, 2020 @ 17:33:42
Author: felixonmars
Revision: 659781
archrelease: copy trunk to community-staging-any
Added:
python2-singledispatch/repos/community-staging-any/
python2-singledispatch/repos/community-staging-any/PKGBUILD
(from rev 659779, python2-singledispatch/trunk/PKGBUILD)
python2-singledispatch/repos/community-staging-any/license
(from rev 659780, python2-singledispatch/trunk/license)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
license | 19 +++++++++++++++++++
2 files changed, 55 insertions(+)
Copied: python2-singledispatch/repos/community-staging-any/PKGBUILD (from rev 659779, python2-singledispatch/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-07-07 17:33:42 UTC (rev 659781)
@@ -0,0 +1,36 @@
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+
+pkgname=python2-singledispatch
+pkgver=3.4.0.3
+pkgrel=4
+pkgdesc="Implementation of functools.singledispatch from Python 3.4"
+arch=('any')
+url="https://bitbucket.org/ambv/singledispatch"
+license=('MIT')
+depends=('python2' 'python2-six')
+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-staging-any/license (from rev 659780, python2-singledispatch/trunk/license)
===================================================================
--- community-staging-any/license (rev 0)
+++ community-staging-any/license 2020-07-07 17:33:42 UTC (rev 659781)
@@ -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