Browse Source

python2-evdev: added to repo

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
master
Steven Noonan 3 years ago
parent
commit
cbbe79865f
Signed by: steven GPG Key ID: 408EEB508ED0CD4D
  1. 1
      python2-evdev/.gitignore
  2. 30
      python2-evdev/PKGBUILD

1
python2-evdev/.gitignore

@ -0,0 +1 @@
/python2-evdev

30
python2-evdev/PKGBUILD

@ -0,0 +1,30 @@
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
pkgname=python2-evdev
pkgver=1.1.2
pkgrel=2
pkgdesc="Python bindings for the Linux input subsystem"
url="https://python-evdev.readthedocs.io/en/latest/"
arch=(x86_64)
license=(BSD)
depends=(python2)
makedepends=(git)
_commit=34a7535e8e160c78bf923adc48a1f1f6bcdcaae8 # tags/v1.1.2
source=("$pkgname::git+https://github.com/gvalkov/python-evdev#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd $pkgname
git describe --tags | sed 's/^v//;s/-/+/g'
}
build() {
cd $pkgname
python2 setup.py build
}
package() {
cd $pkgname
python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE
}
Loading…
Cancel
Save