Date: Sunday, December 25, 2016 @ 17:34:40 Author: foutrelis Revision: 202111
archrelease: copy trunk to community-staging-any Added: python-pyperclip/repos/community-staging-any/ python-pyperclip/repos/community-staging-any/PKGBUILD (from rev 202110, python-pyperclip/trunk/PKGBUILD) ----------+ PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) Copied: python-pyperclip/repos/community-staging-any/PKGBUILD (from rev 202110, python-pyperclip/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2016-12-25 17:34:40 UTC (rev 202111) @@ -0,0 +1,60 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@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.27 +_commit=7deec0b6464bbda18ce2f700980edba2d6c51e10 +pkgrel=2 +pkgdesc="A cross-platform clipboard module for Python" +arch=('any') +url="https://github.com/asweigart/pyperclip" +license=('BSD') +makedepends=('python-setuptools' 'python2-setuptools' 'git') +# GTK/Qt tests crash xvfb, and Klipper tests require a running klipper +checkdepends=('xorg-server-xvfb' 'python-pytest' 'python2-pytest' + 'xsel' 'xclip') +source=("git+https://github.com/asweigart/pyperclip.git#commit=$_commit") +md5sums=('SKIP') + +prepare() { + cp -a $_pypiname{,-py2} +} + +check() { + cd "$srcdir/$_pypiname" + PYTHONPATH="$PWD/build/lib:$PYTHONPATH" xvfb-run py.test + + cd "$srcdir/$_pypiname-py2" + PYTHONPATH="$PWD/build/lib:$PYTHONPATH" xvfb-run py.test2 +} + +package_python-pyperclip() { + depends=('python') + optdepends=('xclip: xclip backend' + 'xsel: xsel backend' + 'python-pyqt4: qt backend' + 'plasma-workspace: klipper backend') + + cd "$srcdir/$_pypiname" + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt" +} + +package_python2-pyperclip() { + depends=('python2') + optdepends=('xclip: xclip backend' + 'xsel: xsel backend' + 'python2-pyqt4: qt backend' + 'plasma-workspace: klipper backend' + 'pygtk: gtk backend') + + cd "$srcdir/$_pypiname-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: