summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.SRCINFO9
-rw-r--r--.gitignore8
-rw-r--r--PKGBUILD32
3 files changed, 29 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a758395e76d..b8176c27793 100755
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,19 @@
pkgbase = python-pynput
pkgdesc = Python library to monitor and control user input devices
- pkgver = 1.7.1
+ pkgver = 1.7.2
pkgrel = 1
url = https://github.com/moses-palmer/pynput
arch = any
license = LGPL3
- makedepends = python-setuptools
makedepends = python-setuptools-lint
depends = python-xlib
depends = python-six
depends = python-evdev
optdepends = python-sphinx: build online documentation
- source = python-pynput-1.7.1.tar.gz::https://github.com/moses-palmer/pynput/archive/v1.7.1.tar.gz
+ source = https://pypi.org/packages/source/p/pynput/pynput-1.7.2.tar.gz
source = python-pynput.patch
- sha512sums = b2cae6a9eca8b6b76472f15395b5fa12b807faed209bedf70a89817a10e589d62d1bf7cf617f8d92ca6b6685b04728a9e1e9e24a883398a0f2519af44b15ead5
- sha512sums = fd25744095c3201335cf601ec7e514f4bb2943de777849b2e821168d4e61098ecc355cfa13eb07ede7c1b91fe63f694a1dd42b13b5d4b8796a593aa5acf908b9
+ sha256sums = dd8b1ff2451e2b76c753e115ab20b6cfa73801c395f22987474f942726558fec
+ sha256sums = b2e10f5baf1501e8365b1a95fd756cde5a8510107d89557ab764a47c3ef47226
pkgname = python-pynput
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..14f6ac911c8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,8 @@
+# Ignore everything
+*
+
+# But not these files...
+!.gitignore
+!PKGBUILD
+!.SRCINFO
+!python-pynput.patch
diff --git a/PKGBUILD b/PKGBUILD
index d53ec409f14..82bbdca219c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,31 +1,33 @@
-# Maintainer: Juliette Monsel <j_4321 at protonmail dot com>
-pkgname='python-pynput'
-pkgver=1.7.1
+# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
+# Contributor: Juliette Monsel <j_4321 at protonmail dot com>
+pkgname=python-pynput
+_name=${pkgname#python-}
+pkgver=1.7.2
pkgrel=1
-_name=pynput
pkgdesc="Python library to monitor and control user input devices"
arch=('any')
url="https://github.com/moses-palmer/pynput"
license=('LGPL3')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/moses-palmer/${_name}/archive/v${pkgver}.tar.gz"
- "python-pynput.patch")
-sha512sums=('b2cae6a9eca8b6b76472f15395b5fa12b807faed209bedf70a89817a10e589d62d1bf7cf617f8d92ca6b6685b04728a9e1e9e24a883398a0f2519af44b15ead5'
- 'fd25744095c3201335cf601ec7e514f4bb2943de777849b2e821168d4e61098ecc355cfa13eb07ede7c1b91fe63f694a1dd42b13b5d4b8796a593aa5acf908b9')
-makedepends=('python-setuptools' 'python-setuptools-lint')
depends=('python-xlib' 'python-six' 'python-evdev')
+makedepends=('python-setuptools-lint')
optdepends=('python-sphinx: build online documentation')
+source=("https://pypi.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz"
+ "$pkgname.patch")
+sha256sums=('dd8b1ff2451e2b76c753e115ab20b6cfa73801c395f22987474f942726558fec'
+ 'b2e10f5baf1501e8365b1a95fd756cde5a8510107d89557ab764a47c3ef47226')
prepare() {
- cd "${srcdir}/${_name}-${pkgver}"
- patch -Np1 -i "${srcdir}/python-pynput.patch"
+ cd "$_name-$pkgver"
+ patch -Np1 -i "$srcdir/python-pynput.patch"
}
build() {
- cd "$srcdir/${_name}-${pkgver}"
- python setup.py build
+ cd "$_name-$pkgver"
+ python setup.py build
}
package() {
- cd "$srcdir/${_name}-${pkgver}"
- python setup.py install --root="$pkgdir/" --prefix=/usr --optimize=1 --skip-build;
+ cd "$_name-$pkgver"
+ export PYTHONHASHSEED=0
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}