summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD31
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e93f4b11bef
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = python-pyterminalui
+ pkgdesc = A set of helpers to implement a text user interface (TUI) in a terminal
+ pkgver = 1.3.4
+ pkgrel = 1
+ url = https://github.com/Paebbels/pyTerminalUI
+ arch = any
+ license = Apache
+ checkdepends = python-pytest
+ makedepends = python-setuptools
+ depends = python-colorama
+ depends = python-pyexceptions
+ depends = python-pymetaclasses
+ source = python-pyterminalui-1.3.4.tar.gz::https://github.com/Paebbels/pyTerminalUI/archive/v1.3.4.tar.gz
+ sha256sums = 75843183d41e6696352a29a18ea97a3b66ef2c82cf0bc70b68c78e0a0a6126ec
+
+pkgname = python-pyterminalui
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b309c65c5fe
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: xiretza <xiretza+aur@xiretza.xyz>
+
+_pkgname='pyTerminalUI'
+pkgname=python-${_pkgname,,}
+pkgver=1.3.4
+pkgrel=1
+pkgdesc="A set of helpers to implement a text user interface (TUI) in a terminal"
+arch=(any)
+url="https://github.com/Paebbels/pyTerminalUI"
+license=('Apache')
+depends=('python-colorama' 'python-pyexceptions' 'python-pymetaclasses')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('75843183d41e6696352a29a18ea97a3b66ef2c82cf0bc70b68c78e0a0a6126ec')
+
+build() {
+ cd "$_pkgname-$pkgver"
+ python setup.py build
+}
+
+check(){
+ cd "$_pkgname-$pkgver"
+ touch tests/__init__.py
+ pytest --override-ini 'python_files=*' tests/
+}
+
+package() {
+ cd "$_pkgname-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+}