34 lines
847 B
Bash
34 lines
847 B
Bash
# Template file for 'python-evdev'
|
|
pkgname=python-evdev
|
|
version=0.8.1
|
|
revision=1
|
|
build_style=python-module
|
|
pycompile_module="evdev"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
makedepends="python-devel python3-devel"
|
|
checkdepends="python3-pytest"
|
|
short_desc="Python2 bindings for the Linux input subsystem"
|
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://github.com/gvalkov/python-evdev"
|
|
distfiles="https://github.com/gvalkov/python-evdev/archive/v${version}.tar.gz"
|
|
checksum=ae6420168d172863c9176583ac3298036a90071ce0e25ac5a8244b9c667edf6e
|
|
|
|
do_check() {
|
|
# Required /dev/uinput available
|
|
:
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-evdev_package() {
|
|
pycompile_module="evdev"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|