makedeb
Python library to read characters and key strokes
Click here to go back to the commit logs for python3-readchar.
Hash: 83107e5ced3173a5d52db5ad5754922683b2dd6c
Message: update to 3.0.3, thanks to kylelaker
diff --git a/.SRCINFO b/.SRCINFO
index 4f734cb..b435b79 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,16 @@
pkgbase = python-readchar
pkgdesc = Python library to read characters and key strokes
- pkgver = 2.0.0
+ pkgver = 3.0.3
pkgrel = 1
url = https://github.com/magmax/python-readchar
arch = any
- license = custom:MIT
+ license = MIT
makedepends = python-setuptools
+ makedepends = flake8
depends = python
- source = https://github.com/magmax/python-readchar/archive/2.0.0.tar.gz
+ source = python-readchar-3.0.3.tar.gz::https://github.com/magmax/python-readchar/archive/v3.0.3.tar.gz
source = LICENSE
- md5sums = cdc776bd6105c3795a4fc65054b635e3
+ md5sums = f7ee27cbdea3de2477e8a1bc20678a09
md5sums = 6fe7ddd14c619721d6db734a05d7d423
pkgname = python-readchar
diff --git a/PKGBUILD b/PKGBUILD
index a929199..d1dd974 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,35 @@
# Maintainer: Mario Ortiz Manero <marioortizmanero@gmail.com>
+# Maintainer: Kyle Laker <kyle+aur@laker.email>
pkgname=python-readchar
-pkgver=2.0.0
+pkgver=3.0.3
pkgrel=1
pkgdesc="Python library to read characters and key strokes"
arch=("any")
url="https://github.com/magmax/python-readchar"
-license=("custom:MIT")
+license=("MIT")
depends=("python")
-makedepends=("python-setuptools")
-source=("https://github.com/magmax/python-readchar/archive/$pkgver.tar.gz"
+makedepends=("python-setuptools" "flake8")
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/magmax/python-readchar/archive/v$pkgver.tar.gz"
"LICENSE")
-md5sums=('cdc776bd6105c3795a4fc65054b635e3'
+md5sums=('f7ee27cbdea3de2477e8a1bc20678a09'
'6fe7ddd14c619721d6db734a05d7d423')
+prepare() {
+ cd "${srcdir}/$pkgname-$pkgver"
+
+ # Fix the tests getting included in the package
+ sed -i' ' -e's/"tests"/"tests*"/' setup.py
+}
+
build() {
- cd "$pkgname-$pkgver"
+ cd "${srcdir}/$pkgname-$pkgver"
+
python setup.py build
}
package() {
- cd "$pkgname-$pkgver"
+ cd "${srcdir}/$pkgname-$pkgver"
+
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}