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

Felix Yan fyan at archlinux.org
Thu Apr 9 06:33:22 UTC 2015


    Date: Thursday, April 9, 2015 @ 08:33:22
  Author: fyan
Revision: 131013

archrelease: copy trunk to community-any

Added:
  python-pyperclip/repos/community-any/
  python-pyperclip/repos/community-any/LICENSE.txt
    (from rev 131012, python-pyperclip/trunk/LICENSE.txt)
  python-pyperclip/repos/community-any/PKGBUILD
    (from rev 131012, python-pyperclip/trunk/PKGBUILD)

-------------+
 LICENSE.txt |   27 +++++++++++++++++++++++++++
 PKGBUILD    |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)

Copied: python-pyperclip/repos/community-any/LICENSE.txt (from rev 131012, python-pyperclip/trunk/LICENSE.txt)
===================================================================
--- community-any/LICENSE.txt	                        (rev 0)
+++ community-any/LICENSE.txt	2015-04-09 06:33:22 UTC (rev 131013)
@@ -0,0 +1,27 @@
+Copyright (c) 2014, Al Sweigart
+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 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 the {organization} nor the names of its
+  contributors 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 HOLDER 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-pyperclip/repos/community-any/PKGBUILD (from rev 131012, python-pyperclip/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2015-04-09 06:33:22 UTC (rev 131013)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Jim Bridgewater <jwbwater at gmail dot com>
+# Contributor: delta48 <dark.magician.48[at]gmail[dot]com> 
+
+pkgbase=python-pyperclip
+pkgname=('python-pyperclip' 'python2-pyperclip')
+_pypiname=pyperclip
+pkgver=1.5.9
+pkgrel=2
+pkgdesc="A cross-platform clipboard module for Python"
+arch=('any')
+url="http://coffeeghost.net/2010/10/09/pyperclip-a-cross-platform-clipboard-module-for-python/"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools' 'xclip')
+checkdepends=('xorg-server-xvfb')
+source=("https://pypi.python.org/packages/source/p/$_pypiname/$_pypiname-$pkgver.zip"
+        LICENSE.txt)
+md5sums=('aae99dd8d46e45197ac013350f691591'
+         'b6cd06fd72984ac1f8428337aec8cff7')
+
+prepare() {
+  cp -a $_pypiname-$pkgver{,-py2}
+}
+
+check() {
+  cd "$srcdir/$_pypiname-$pkgver"
+  xvfb-run python tests/basicTests.py
+
+  cd "$srcdir/$_pypiname-$pkgver-py2"
+  xvfb-run python2 tests/basicTests.py
+}
+
+package_python-pyperclip() {
+  depends=('python' 'xclip')
+
+  cd "$srcdir/$_pypiname-$pkgver"
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 ../LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}
+
+package_python2-pyperclip() {
+  depends=('python2' 'xclip')
+
+  cd "$srcdir/$_pypiname-$pkgver-py2"
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 ../LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list