[arch-commits] Commit in python-getkey (3 files)

Balló György bgyorgy at archlinux.org
Mon Jun 7 15:50:36 UTC 2021


    Date: Monday, June 7, 2021 @ 15:50:36
  Author: bgyorgy
Revision: 957767

archrelease: copy trunk to community-any

Added:
  python-getkey/repos/
  python-getkey/repos/community-any/
  python-getkey/repos/community-any/PKGBUILD
    (from rev 957766, python-getkey/trunk/PKGBUILD)

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Copied: python-getkey/repos/community-any/PKGBUILD (from rev 957766, python-getkey/trunk/PKGBUILD)
===================================================================
--- repos/community-any/PKGBUILD	                        (rev 0)
+++ repos/community-any/PKGBUILD	2021-06-07 15:50:36 UTC (rev 957767)
@@ -0,0 +1,31 @@
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+
+_pkgname=getkey
+pkgname=python-getkey
+pkgver=0.6.5
+pkgrel=1
+pkgdesc='Python library to easily read single chars and key strokes'
+arch=('any')
+url='https://github.com/kcsaff/getkey'
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools' 'flake8')
+checkdepends=('python-pytest-cov')
+source=("https://github.com/kcsaff/$_pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('096792463ed0cd8ac92d7b2b6d23cff1c815b449403115034bed2029b378d54c')
+
+build() {
+  cd $_pkgname-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+  pytest
+}
+
+package() {
+  cd $_pkgname-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list