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

Felix Yan felixonmars at archlinux.org
Fri Jul 8 04:35:28 UTC 2016


    Date: Friday, July 8, 2016 @ 04:35:28
  Author: felixonmars
Revision: 271160

archrelease: copy trunk to extra-any

Added:
  python2-configparser/repos/extra-any/
  python2-configparser/repos/extra-any/PKGBUILD
    (from rev 271159, python2-configparser/trunk/PKGBUILD)
  python2-configparser/repos/extra-any/license
    (from rev 271159, python2-configparser/trunk/license)

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 license  |   19 +++++++++++++++++++
 2 files changed, 54 insertions(+)

Copied: python2-configparser/repos/extra-any/PKGBUILD (from rev 271159, python2-configparser/trunk/PKGBUILD)
===================================================================
--- extra-any/PKGBUILD	                        (rev 0)
+++ extra-any/PKGBUILD	2016-07-08 04:35:28 UTC (rev 271160)
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andrzej Giniewicz <gginiu at gmail.com>
+
+pkgname=python2-configparser
+pkgver=3.5.0
+pkgrel=1
+pkgdesc="This library brings the updated configparser from Python 3.5 to Python 2.6-3.5."
+arch=('any')
+url="https://bitbucket.org/ambv/configparser"
+license=('MIT')
+depends=('python2')
+makedepends=('python2-setuptools')
+source=("https://pypi.io/packages/source/c/configparser/configparser-${pkgver}.tar.gz" license)
+md5sums=('cfdd915a5b7a6c09917a64a573140538'
+         'f8e5b03556ed846d7681bacd4126f484')
+
+prepare() {
+  sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+    $(find "${srcdir}"/configparser-${pkgver} -name '*.py')
+}
+
+build() {
+  cd "${srcdir}"/configparser-${pkgver}
+
+  python2 setup.py build
+}
+
+package() {
+  cd "${srcdir}"/configparser-${pkgver}
+
+  python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
+
+  install -D "${srcdir}"/license "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: python2-configparser/repos/extra-any/license (from rev 271159, python2-configparser/trunk/license)
===================================================================
--- extra-any/license	                        (rev 0)
+++ extra-any/license	2016-07-08 04:35:28 UTC (rev 271160)
@@ -0,0 +1,19 @@
+Copyright (c) 2011 Ł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