makedeb
Python library to read characters and key strokes
Click here to go back to the commit logs for python3-readchar.
Hash: 2c617189ffa866a9682bc12fd59c7819dd756246
Message: Initial mpr release
diff --git a/.SRCINFO b/.SRCINFO
index 560e31a..be5b688 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,20 @@
-pkgbase = python-readchar
- pkgdesc = Python library to read characters and key strokes
- pkgver = 4.0.5
- pkgrel = 1
- url = https://github.com/magmax/python-readchar
- arch = any
- license = custom:MIT
- makedepends = python-build
- makedepends = python-installer
- makedepends = python-wheel
- makedepends = python-setuptools
- depends = python
- source = python-readchar-4.0.5.tar.gz::https://github.com/magmax/python-readchar/archive/v4.0.5.tar.gz
- source = LICENSE
- md5sums = d32799bc2c161d3db52c1d2b86a6cfbf
- md5sums = 688183518094c78c59f08f1b74493a98
-
-pkgname = python-readchar
+generated-by = makedeb
+pkgname = python3-readchar
+pkgbase = python3-readchar
+pkgdesc = Python library to read characters and key strokes
+pkgrel = 0
+pkgver = 4.0.5
+url = https://github.com/magmax/python-readchar
+arch = all
+depends = python3
+license = MIT
+makedepends = python3-build
+makedepends = python3-installer
+makedepends = python3-wheel
+makedepends = python3-setuptools
+source = python3-readchar-4.0.5.tar.gz::https://github.com/magmax/python-readchar/archive/v4.0.5.tar.gz
+b2sums = c9b99ea8ce154cbe442b3e0da149ea74c94122488a31a2be0d98f15316819466e353688c805c3b9e0f4a668a733ceddce188f11845ca7b624eaadbf841ec66e4
+makedepends = python3-build
+makedepends = python3-installer
+makedepends = python3-wheel
+makedepends = python3-setuptools
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..6f1e382
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+pkg/
+src/
+python3-readchar*
diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index 9f2ea5e..0000000
--- a/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2014-2021 Miguel Angel Garcia
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/PKGBUILD b/PKGBUILD
index 5483c9f..1c89f91 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,21 +1,21 @@
-# Maintainer: Mario Ortiz Manero <marioortizmanero@gmail.com>
-# Maintainer: Kyle Laker <kyle+aur@laker.email>
-pkgname=python-readchar
+# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
+# Contributor: Mario Ortiz Manero <marioortizmanero@gmail.com>
+# Contributor: Kyle Laker <kyle+aur@laker.email>
+_pkgname=python-readchar
+pkgname=python3-readchar
pkgver=4.0.5
-pkgrel=1
+pkgrel=0
pkgdesc="Python library to read characters and key strokes"
-arch=("any")
+arch=("all")
url="https://github.com/magmax/python-readchar"
-license=("custom:MIT")
-depends=("python")
-makedepends=("python-build" "python-installer" "python-wheel" "python-setuptools")
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/magmax/python-readchar/archive/v$pkgver.tar.gz"
- "LICENSE")
-md5sums=('d32799bc2c161d3db52c1d2b86a6cfbf'
- '688183518094c78c59f08f1b74493a98')
+license=("MIT")
+depends=("python3")
+makedepends=("python3-build" "python3-installer" "python3-wheel" "python3-setuptools")
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/magmax/python-readchar/archive/v$pkgver.tar.gz")
+b2sums=('c9b99ea8ce154cbe442b3e0da149ea74c94122488a31a2be0d98f15316819466e353688c805c3b9e0f4a668a733ceddce188f11845ca7b624eaadbf841ec66e4')
prepare() {
- cd "${srcdir}/$pkgname-$pkgver"
+ cd "${srcdir}/$_pkgname-$pkgver"
# Flake8 only required for tests
sed -i '/flake8/d' setup.py
@@ -24,14 +24,19 @@ prepare() {
}
build() {
- cd "${srcdir}/$pkgname-$pkgver"
+ cd "${srcdir}/$_pkgname-$pkgver"
- GITHUB_REF="refs/tags/$pkgver" python -m build --wheel --no-isolation
+ GITHUB_REF="refs/tags/$pkgver" python3 -m build --wheel --no-isolation
}
package() {
- cd "${srcdir}/$pkgname-$pkgver"
+ cd "${srcdir}/$_pkgname-$pkgver"
- python -m installer --destdir="$pkgdir" dist/*.whl
- install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ python3 -m installer --destdir="$pkgdir" dist/*.whl #--optimize=1 --skip-build
+ # Manual remove local
+ mv "$pkgdir/usr/local/"* "$pkgdir/usr/"
+ rmdir "$pkgdir/usr/local"
+ #doc
+ install -Dm644 "LICENCE" "$pkgdir/usr/share/doc/$pkgname/LICENSE"
+ install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/redme"
}