makedeb


python3-readchar 4.2.1-0


Python library to read characters and key strokes

Click here to go back to the commit logs for python3-readchar.

Commit:


Hash: c25dd32baae038d7948a886f202720b17d6657a4

Message: 4.2.1

Diff


diff --git a/.SRCINFO b/.SRCINFO
index be5b688..fd60d5e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,17 +3,17 @@ pkgname = python3-readchar
 pkgbase = python3-readchar
 pkgdesc = Python library to read characters and key strokes
 pkgrel = 0
-pkgver = 4.0.5
+pkgver = 4.2.1
 url = https://github.com/magmax/python-readchar
 arch = all
 depends = python3
-license = MIT
+license = custom: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
+source = python3-readchar-4.2.1.tar.gz::https://github.com/magmax/python-readchar/archive/v4.2.1.tar.gz
+b2sums = 5ba452b11e11bca431b3db5245ae640e318275bc58de7f837d0e6167e5c7d102eac2b91641d7f4fea6da3a3b6bedb7c0b984d80d752286285b5316d7f8d499c6
 makedepends = python3-build
 makedepends = python3-installer
 makedepends = python3-wheel
diff --git a/PKGBUILD b/PKGBUILD
index 1c89f91..3263bda 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,27 +1,18 @@
 # Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
-# Contributor: Mario Ortiz Manero <marioortizmanero@gmail.com>
-# Contributor: Kyle Laker <kyle+aur@laker.email>
+# Contributor: Mario Ortiz Manero (AUR) <marioortizmanero@gmail.com>
+# Contributor: Kyle Laker (AUR) <kyle+aur@laker.email>
 _pkgname=python-readchar
 pkgname=python3-readchar
-pkgver=4.0.5
+pkgver=4.2.1
 pkgrel=0
 pkgdesc="Python library to read characters and key strokes"
 arch=("all")
 url="https://github.com/magmax/python-readchar"
-license=("MIT")
+license=("custom: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"
-
-    # Flake8 only required for tests
-    sed -i '/flake8/d' setup.py
-    # Fix the tests getting included in the package
-    sed -i' ' -e's/"tests"/"tests*"/' setup.py
-}
+b2sums=('5ba452b11e11bca431b3db5245ae640e318275bc58de7f837d0e6167e5c7d102eac2b91641d7f4fea6da3a3b6bedb7c0b984d80d752286285b5316d7f8d499c6')
 
 build() {
     cd "${srcdir}/$_pkgname-$pkgver"
@@ -37,6 +28,6 @@ package() {
     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"
+    install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/readme"
+    ln -s "/usr/lib/python3.11/dist-packages/readchar-$pkgver.dist-info/LICENCE" "$pkgdir/usr/share/doc/$pkgname/LICENSE"
 }