archrelease: copy trunk to community-any
[arch-community.git] / python-pyperclip / trunk / PKGBUILD
blob7356d30b890019ee4b74b268f2cabe7e76ff0583
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Jim Bridgewater <jwbwater at gmail dot com>
3 # Contributor: delta48 <dark.magician.48[at]gmail[dot]com>
5 pkgname=python-pyperclip
6 pkgver=1.8.2
7 _commit=714be1f3f8e5bb289bbd77aa83be212d660f3cb0
8 pkgrel=5
9 pkgdesc="A cross-platform clipboard module for Python"
10 arch=('any')
11 url="https://github.com/asweigart/pyperclip"
12 license=('BSD')
13 makedepends=('python-setuptools')
14 # GTK/Qt tests crash xvfb, and Klipper tests require a running klipper
15 checkdepends=('xorg-server-xvfb' 'python-pytest' 'xsel' 'xclip')
16 depends=('python')
17 optdepends=('xclip: xclip backend'
18             'xsel: xsel backend'
19             'plasma-workspace: klipper backend')
20 source=("$pkgname-$_commit.tar.gz::https://github.com/asweigart/pyperclip/archive/$_commit.tar.gz")
21 sha512sums=('616619dbbfec3e28f4bc86ef9088df0b77b32f6183f42689c23f6a43a5e905ea0c6e939237fe905c62e4ed46e4fd029d512c43fb99549252b8841dc6eb811ec4')
23 prepare() {
24   mv pyperclip-{$_commit,$pkgver}
27 build() {
28   cd pyperclip-$pkgver
29   python setup.py build
32 check() {
33   cd pyperclip-$pkgver
34   PYTHONPATH="$PWD"/build/lib xvfb-run py.test
37 package() {
38   cd pyperclip-$pkgver
39   python setup.py install --root="$pkgdir" --optimize=1
40   install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
43 # vim:set ts=2 sw=2 et: