summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMark Wagie2021-03-30 10:59:09 -0600
committerMark Wagie2021-03-30 10:59:09 -0600
commitb504630ff87a6f23207e6e0c76d8ddf44681d374 (patch)
tree9ae23de456143c130f09cad578ea4355b1573bd1 /PKGBUILD
parente12512bf0cf76f6e6af9eed603dfb2c22680b307 (diff)
downloadaur-b504630ff87a6f23207e6e0c76d8ddf44681d374.tar.gz
exclude Sphinx and Wheel
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD18
1 files changed, 14 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index aeb1136a703..c48aa10960b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,15 +3,25 @@
pkgname=python-pynput
_name=${pkgname#python-}
pkgver=1.7.3
-pkgrel=3
+pkgrel=4
pkgdesc="Python library to monitor and control user input devices"
arch=('any')
url="https://github.com/moses-palmer/pynput"
license=('LGPL3')
depends=('python-xlib' 'python-six' 'python-evdev')
-makedepends=('python-setuptools-lint' 'python-sphinx')
-source=("https://pypi.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz")
-sha256sums=('4e50b1a0ab86847e87e58f6d1993688b9a44f9f4c88d4712315ea8eb552ef828')
+makedepends=('python-setuptools-lint')
+source=("https://pypi.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz"
+ "$pkgname.patch")
+sha256sums=('4e50b1a0ab86847e87e58f6d1993688b9a44f9f4c88d4712315ea8eb552ef828'
+ 'b2e10f5baf1501e8365b1a95fd756cde5a8510107d89557ab764a47c3ef47226')
+
+prepare() {
+ cd "$_name-$pkgver"
+
+ # Wheel and Sphinx not necessary
+ patch -Np1 -i "$srcdir/python-pynput.patch"
+ rm setup.cfg
+}
build() {
cd "$_name-$pkgver"