archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-getkey / trunk / PKGBUILD
blob12422b71bb4e43258aa6b3856d13e5f778f27d13
1 # Maintainer: Balló György <ballogyor+arch at gmail dot com>
3 _pkgname=getkey
4 pkgname=python-getkey
5 pkgver=0.6.5
6 pkgrel=4
7 pkgdesc='Python library to easily read single chars and key strokes'
8 arch=('any')
9 url='https://github.com/kcsaff/getkey'
10 license=('MIT')
11 depends=('python')
12 makedepends=('python-setuptools' 'flake8')
13 checkdepends=('python-pytest-cov')
14 source=("https://github.com/kcsaff/$_pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
15 sha256sums=('096792463ed0cd8ac92d7b2b6d23cff1c815b449403115034bed2029b378d54c')
17 build() {
18   cd $_pkgname-$pkgver
19   python setup.py build
22 check() {
23   cd $_pkgname-$pkgver
24   pytest
27 package() {
28   cd $_pkgname-$pkgver
29   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
30   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"