void-packages/srcpkgs/python-evdev/template

27 lines
761 B
Bash

# Template file for 'python-evdev'
pkgname=python-evdev
version=1.1.2
revision=2
build_style=python-module
pycompile_module="evdev"
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
short_desc="Python2 bindings for the Linux input subsystem"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/gvalkov/python-evdev"
distfiles="https://github.com/gvalkov/python-evdev/archive/v${version}.tar.gz"
checksum=4403d4ee2d9682d17d292d5cfe0781d9ebfe119c7bb0f631fb59de3003bad49d
post_install() {
vlicense LICENSE
}
python3-evdev_package() {
pycompile_module="evdev"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}